MythosAPI
4 years agoNew Contributor
OAS 3.0.3 request schema for an empty JSON body
I am attempting to create an OAS schema for an empty JSON body: { } I am trying to get the documentation to show an empty JSON body, and have that autogenerated. The API defines this...
- 4 years ago
Solved.
requestBody: required: true content: application/json: schema: $ref: '#/components/schemas/EmptyBody' # # # # # # EmptyBody: type: object nullable: true