openapi: 3.1.0 info: title: Petstore inference demo version: 1.0.0 paths: /pets: get: operationId: listPets parameters: - name: limit in: query schema: type: integer - name: status in: query schema: type: string enum: [available, adopted] responses: '200': description: Pets content: application/json: schema: type: array items: $ref: '#/components/schemas/Pet' post: operationId: createPet requestBody: required: true content: application/json: schema: type: object required: [name] properties: name: type: string status: type: string enum: [available, adopted] responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/Pet' /pets/{petId}: parameters: - $ref: '#/components/parameters/PetId' get: operationId: getPet responses: '200': description: Found content: application/json: schema: $ref: '#/components/schemas/Pet' '404': description: Missing content: application/json: schema: type: object required: [message] properties: message: type: string delete: operationId: deletePet responses: '204': description: Deleted components: parameters: PetId: name: petId in: path required: true schema: type: integer schemas: Pet: type: object required: [id, name, status] properties: id: type: integer name: type: string status: type: string enum: [available, adopted] nickname: type: [string, 'null']