no-query-explode
@azure-tools/typespec-azure-core/no-query-explode
Azure services favor serializing query parameter of array type using the simple style(Where each values is joined by a ,
)
Using the *
uri template modifier or explode: true
property specify that each individual value of the array should be sent as a separate query parameter.
โ Incorrect
Section titled โโ Incorrectโop list( @query(#{ explode: true }) select: string[],): Pet[];
โ Correct
Section titled โโ Correctโop list( @query select: string[],): Pet[];
op list( @query(#{ explode: false }) select: string[],): Pet[];