reorder-parameter-missing
@azure-tools/typespec-client-generator-core/reorder-parameter-missingSeverity: error
This diagnostic is issued when reorderParameters omits a parameter that exists on the operation.
Impact
Section titled “Impact”- Area: Client customization transformations. Blocks
reorderParametersbecause the transformed signature would omit an existing operation parameter. - Not affected: The original method parameter set remains intact.
❌ Incorrect Usage
Section titled “❌ Incorrect Usage”@servicenamespace MyService { op myOp(a: string, b: string, c: string): void;}
alias Modified = reorderParameters(MyService.myOp, #["c", "a"]); // missing parameter `b`Diagnostic Message
Section titled “Diagnostic Message”TCGC reports:
Parameter "b" from operation "myOp" is missing in reorder list.✅ How to Fix
Section titled “✅ How to Fix”Include every operation parameter exactly once in the reorder list.
@servicenamespace MyService { op myOp(a: string, b: string, c: string): void;}
alias Modified = reorderParameters(MyService.myOp, #["c", "a", "b"]);