no-query-explode
@azure-tools/typespec-azure-core/no-query-explodeIt is recommended to serialize query parameter without explode: true
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.
Impact
Section titled “Impact”- Area: API
Allowing explode on multi-valued query parameters is mainly a data-plane concern but should be avoided.
❌ 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[];Suppression
Section titled “Suppression”Suppress only when required to match an existing API; otherwise use a different separator for multi-valued query parameters.