Skip to content

Commit

Permalink
specs, minor change to avoid deprecated query param options (#683)
Browse files Browse the repository at this point in the history
* specs, minor change to avoid deprecated query param options

* add "go" to client-operation-group client scope
  • Loading branch information
weidongxu-microsoft authored Aug 13, 2024
1 parent 2125347 commit 4a861c7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/curly-cobras-learn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@azure-tools/cadl-ranch-specs": patch
---

Minor change to avoid deprecated query parameter options.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace Client.Structure.ClientOperationGroup {
name: "SecondClient",
service: Client.Structure.Service,
},
"javascript"
"javascript,go"
)
namespace Client.Structure.AnotherClientOperationGroup {
op five is Client.Structure.Service.Bar.five;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@ namespace Query {
""")
@route("/multi")
op multi(
#suppress "deprecated" "Deprecated in next release"
@doc("Possible values for colors are [blue,red,green]")
@query({
format: "multi",
})
@query(#{ explode: true })
colors: string[],
): NoContentResponse;

Expand Down Expand Up @@ -75,12 +72,8 @@ namespace Query {
""")
@route("/csv")
op csv(
#suppress "deprecated" "Deprecated in next release"
#suppress "deprecated" "Deprecated in next release"
@doc("Possible values for colors are [blue,red,green]")
@query({
format: "csv",
})
@query
colors: string[],
): NoContentResponse;
}
Expand All @@ -94,7 +87,6 @@ namespace Header {
""")
@route("/csv")
op csv(
#suppress "deprecated" "Deprecated in next release"
@doc("Possible values for colors are [blue,red,green]")
@header({
format: "csv",
Expand Down

0 comments on commit 4a861c7

Please sign in to comment.