Skip to content

Create OpenAPI v2/v3 and OpenAPI v1 schemas in API Management #29714

Open

Description

Related command
az apim api schema create

Is your feature request related to a problem? Please describe.
the CLI does not support creation of API Management schema types OpenAPI v2/v3 or OpenAPI v1, although the SDK does support it

Describe the solution you'd like
Add ability to pass in "components" and "definitions" through the CLI to the SDK. Currently only "value" is passed through:

https://github.com/Azure/azure-sdk-for-python/blob/0572be4d9f7f4c980b9098c9899245a9d5492649/sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/models/_models_py3.py#L18011

The API Management supports three types of schemas: OpenAPI v2/v3, OpenAPI v1, and non-OpenAPI schemas
https://learn.microsoft.com/en-us/azure/templates/microsoft.apimanagement/service/apis/schemas?pivots=deployment-language-arm-template#schemadocumentproperties

Describe alternatives you've considered

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    API Managementaz apimAuto-AssignAuto assign by botService AttentionThis issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions