You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The response schema is marked as "Optional" but I don't think there is a way to mark it as required in the specification data (docs about describing responses in OA3).
openapi: 3.0.0servers: []info:
description: | Exampleversion: 1.0.0title: Swagger Petstore YAMLtags:
- name: petdescription: Everything about your Petspaths:
/pet:
post:
tags:
- petsummary: Add a new pet to the storedescription: Add new pet to the store inventory.operationId: addPetresponses:
"200":
description: successful operationcontent:
application/json:
schema:
$ref: "#/components/schemas/Pet""405":
description: Invalid inputrequestBody:
$ref: "#/components/requestBodies/Pet"components:
schemas:
Pet:
type: objectrequired:
- ageproperties:
age:
description: The age of the pettype: numberexample: 5requestBodies:
Pet:
content:
application/json:
schema:
allOf:
- description: My Pettitle: Pettie
- $ref: "#/components/schemas/Pet"description: Pet object that needs to be added to the storerequired: true
The text was updated successfully, but these errors were encountered:
The response schema is marked as "Optional" but I don't think there is a way to mark it as required in the specification data (docs about describing responses in OA3).
Version: 0.6.4
Commit: 0beb11b
Reproduction spec:
The text was updated successfully, but these errors were encountered: