Skip to content

Commit

Permalink
add x-ms-enum for enum param (#19654)
Browse files Browse the repository at this point in the history
  • Loading branch information
tadelesh authored Jul 11, 2022
1 parent ea28da8 commit c18557c
Showing 1 changed file with 39 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,7 @@
"operationId": "Provider_GetAvailableStacks",
"parameters": [
{
"name": "osTypeSelected",
"in": "query",
"type": "string",
"enum": [
"Windows",
"Linux",
"WindowsFunctions",
"LinuxFunctions",
"All"
]
"$ref": "#/parameters/osTypeSelectedParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
Expand Down Expand Up @@ -69,15 +60,7 @@
"operationId": "Provider_GetFunctionAppStacks",
"parameters": [
{
"name": "stackOsType",
"in": "query",
"description": "Stack OS Type",
"type": "string",
"enum": [
"Windows",
"Linux",
"All"
]
"$ref": "#/parameters/stackOsTypeParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
Expand Down Expand Up @@ -124,15 +107,7 @@
"type": "string"
},
{
"name": "stackOsType",
"in": "query",
"description": "Stack OS Type",
"type": "string",
"enum": [
"Windows",
"Linux",
"All"
]
"$ref": "#/parameters/stackOsTypeParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
Expand Down Expand Up @@ -179,15 +154,7 @@
"type": "string"
},
{
"name": "stackOsType",
"in": "query",
"description": "Stack OS Type",
"type": "string",
"enum": [
"Windows",
"Linux",
"All"
]
"$ref": "#/parameters/stackOsTypeParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
Expand Down Expand Up @@ -264,15 +231,7 @@
"operationId": "Provider_GetWebAppStacks",
"parameters": [
{
"name": "stackOsType",
"in": "query",
"description": "Stack OS Type",
"type": "string",
"enum": [
"Windows",
"Linux",
"All"
]
"$ref": "#/parameters/stackOsTypeParameter"
},
{
"$ref": "#/parameters/apiVersionParameter"
Expand Down Expand Up @@ -312,16 +271,7 @@
"operationId": "Provider_GetAvailableStacksOnPrem",
"parameters": [
{
"name": "osTypeSelected",
"in": "query",
"type": "string",
"enum": [
"Windows",
"Linux",
"WindowsFunctions",
"LinuxFunctions",
"All"
]
"$ref": "#/parameters/osTypeSelectedParameter"
},
{
"$ref": "#/parameters/subscriptionIdParameter"
Expand Down Expand Up @@ -1118,6 +1068,39 @@
"description": "API Version",
"required": true,
"type": "string"
},
"osTypeSelectedParameter": {
"name": "osTypeSelected",
"in": "query",
"type": "string",
"enum": [
"Windows",
"Linux",
"WindowsFunctions",
"LinuxFunctions",
"All"
],
"x-ms-enum": {
"name": "ProviderOsTypeSelected",
"modelAsString": true
},
"x-ms-parameter-location": "method"
},
"stackOsTypeParameter": {
"name": "stackOsType",
"in": "query",
"description": "Stack OS Type",
"type": "string",
"enum": [
"Windows",
"Linux",
"All"
],
"x-ms-enum": {
"name": "ProviderStackOsType",
"modelAsString": true
},
"x-ms-parameter-location": "method"
}
},
"securityDefinitions": {
Expand Down

0 comments on commit c18557c

Please sign in to comment.