Skip to content

Conversation

@azure-sdk
Copy link

{AzureAPIM} fixes Azure/azure-rest-api-specs#21849  'in body' parameter specification missing (#21875)

* {AzureAPIM} fixes Azure/azure-rest-api-specs#21849  'in body' parameter specification missing

fixes Azure/azure-rest-api-specs#21849  'in body' parameter specification missing

The CreateOrUpdate operations on both of the following resource types are missing the in body parameter in the OpenAPI specification (OAS):

Microsoft.ApiManagement/service/contentTypes
Microsoft.ApiManagement/service/contentTypes/contentItems
This causes the documentation TryIt and autogenerated libraries (e.g. nodejs @azure/arm-apimanagement) to break, as they don't support passing in the properties in the body, making these resource types unable to be updated or created.

For example, if you run the "Try It" for this API, it doesn't give you a body field in the auto-generated REST HTTP request form. The body field is needed, but it doesn't give you that field as it's not populated in the OAS for this resource type.

See this: https://github.com/Azure/azure-rest-api-specs/blob/7245d0f5cc01bf95df9d7ae893f252d4001b4ad7/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/apimcontenttypes.json#L132-L162

* Update apimcontenttypes.json
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR has been auto-approved by the @msftbot for the azure-resource-manager-schemas repo.

@ghost
Copy link

ghost commented Jan 5, 2023

Hello @msftbot[bot]!

Because this pull request has the automerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 1 minute. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 039252d into Azure:main Jan 5, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant