Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"x-ms-api-version:true" is ignored if ApiVersion is a path parameter part of x-ms-parametrized host #4656

Closed
lmazuel opened this issue Oct 20, 2022 · 0 comments · Fixed by #4657
Assignees

Comments

@lmazuel
Copy link
Member

lmazuel commented Oct 20, 2022

  "x-ms-parameterized-host": {
    "hostTemplate": "{Endpoint}/anomalydetector/{ApiVersion}",
    "useSchemePrefix": false,
    "parameters": [
      {
        "$ref": "#/parameters/Endpoint"
      },
      {
        "$ref": "#/parameters/ApiVersion"
      }
    ]
  },
...
    "ApiVersion": {
      "name": "ApiVersion",
      "description": "Anomaly Detector API version (for example, v1.1).",
      "x-ms-parameter-location": "client",
      "x-ms-api-version": true,
      "required": true,
      "type": "string",
      "in": "path"
    }

This can be worked around with something like this: Azure/azure-rest-api-specs#21215, but not ideal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants