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:
|
parameters = SchemaContract( |
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
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:
azure-cli/src/azure-cli/azure/cli/command_modules/apim/custom.py
Line 231 in a7c0f5f
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