Skip to content

Commit 340d577

Browse files
authored
{AzureAPIM} fixes #21849 'in body' parameter specification missing (#21875)
* {AzureAPIM} fixes #21849 'in body' parameter specification missing fixes #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
1 parent 3dae944 commit 340d577

File tree

1 file changed

+18
-0
lines changed
  • specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01

1 file changed

+18
-0
lines changed

specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2021-08-01/apimcontenttypes.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,15 @@
150150
{
151151
"$ref": "./apimanagement.json#/parameters/ContentTypeIdParameter"
152152
},
153+
{
154+
"name": "parameters",
155+
"in": "body",
156+
"required": true,
157+
"schema": {
158+
"$ref": "./definitions.json#/definitions/ContentTypeContract"
159+
},
160+
"description": "Create or update parameters."
161+
},
153162
{
154163
"$ref": "./apimanagement.json#/parameters/IfMatchOptionalParameter"
155164
},
@@ -414,6 +423,15 @@
414423
{
415424
"$ref": "./apimanagement.json#/parameters/ContentItemIdParameter"
416425
},
426+
{
427+
"name": "parameters",
428+
"in": "body",
429+
"required": true,
430+
"schema": {
431+
"$ref": "./definitions.json#/definitions/ContentItemContract"
432+
},
433+
"description": "Create or update parameters."
434+
},
417435
{
418436
"$ref": "./apimanagement.json#/parameters/IfMatchOptionalParameter"
419437
},

0 commit comments

Comments
 (0)