{ "openapi": "3.0.1", "info": { "title": "Pets", "version": "1.0.0" }, "paths": { "/pet/{petId}": { "get": { "operationId": "pet_by_petId", "parameters": [ { "name": "petId", "in": "path", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "Returns the Pet", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Pet" } } } } } } } }, "components": { "schemas": { "Pet": { "required": ["id"], "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" } }, "additionalProperties": false } } } }