Skip to content

Commit

Permalink
Revert "remove unnecessary query format; pending to change multi to e…
Browse files Browse the repository at this point in the history
…xplode"

This reverts commit cd5dd27.
  • Loading branch information
weidongxu-microsoft committed Aug 7, 2024
1 parent e87c637 commit 921b668
Showing 1 changed file with 44 additions and 4 deletions.
48 changes: 44 additions & 4 deletions typespec-tests/tsp/enum.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,59 @@ interface EnumOp {

@post
@route("operation/stringenumarray")
setStringEnumArray(colorArray: ColorModel[], colorArrayOpt?: ColorModel[]): string;
setStringEnumArray(
@query({
format: "csv",
})
colorArray: ColorModel[],

@query({
format: "csv",
})
colorArrayOpt?: ColorModel[],
): string;

@post
@route("operation/intenumarray")
setIntEnumArray(priorityArray: Priority[], priorityArrayOpt?: Priority[]): string;
setIntEnumArray(
@query({
format: "csv",
})
priorityArray: Priority[],

@query({
format: "csv",
})
priorityArrayOpt?: Priority[],
): string;

@post
@route("operation/stringarray")
setStringArray(stringArray: string[], stringArrayOpt?: string[]): string;
setStringArray(
@query({
format: "csv",
})
stringArray: string[],

@query({
format: "csv",
})
stringArrayOpt?: string[],
): string;

@post
@route("operation/intarray")
setIntArray(intArray: int32[], intArrayOpt?: int32[]): string;
setIntArray(
@query({
format: "csv",
})
intArray: int32[],

@query({
format: "csv",
})
intArrayOpt?: int32[],
): string;

@post
@route("operation/stringenummulti")
Expand Down

0 comments on commit 921b668

Please sign in to comment.