api-management-developer-portal icon indicating copy to clipboard operation
api-management-developer-portal copied to clipboard

Request body is not preloaded with example data when the schema has nested objects

Open sankarshan-nous opened this issue 1 year ago • 2 comments

The sample request body is not preloaded for few post/put requests which are having nested schema references. I tried by adding sample request under design menu of the endpoint but that does not reflect in the APIM.

APIM-Post

Below is the example request schema which is used for the post request. I am expecting the APIM to generate example request object in the body of the request.

"RequestDto": { "type": "object", "properties": { "email": { "type": "string", "nullable": true }, "firstName": { "type": "string", "nullable": true }, "lastName": { "type": "string", "nullable": true }, "mobileNumber": { "type": "string", "nullable": true }, "startDate": { "type": "string", "format": "date-time", "nullable": true }, "endDate": { "type": "string", "format": "date-time", "nullable": true }, "inviteCommunicationMethod": { "$ref": "#/components/schemas/CommunicationMethod" }, "userId": { "type": "string", "format": "uuid", "nullable": true }, "companyId": { "type": "string", "format": "uuid", "nullable": true }, "business": { "$ref": "#/components/schemas/Business" }, "requestType": { "$ref": "#/components/schemas/RequestType" }, "personalDataDto": { "$ref": "#/components/schemas/PersonalDataDto" } }, "additionalProperties": false },

sankarshan-nous avatar Feb 20 '24 05:02 sankarshan-nous