зеркало из https://github.com/Azure/cadl-ranch.git
specs, minor change to avoid deprecated query param options (#683)
* specs, minor change to avoid deprecated query param options * add "go" to client-operation-group client scope
This commit is contained in:
Родитель
2125347f10
Коммит
4a861c7839
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"@azure-tools/cadl-ranch-specs": patch
|
||||
---
|
||||
|
||||
Minor change to avoid deprecated query parameter options.
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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",
|
||||
|
|
Загрузка…
Ссылка в новой задаче