{ "openapi": "3.1.0", "info": { "version": "1.0.0", "title": "Swagger Petstore", "license": { "name": "MIT" } }, "servers": [ { "url": "http://petstore.swagger.io/v1" } ], "paths": { "/pets": { "get": { "summary": "List all dogs", "operationId": "listDogs", "tags": ["felines"], "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "stays", "in": "query", "required": true, "schema": { "type": "integer" } } ], "responses": { "200": { "description": "A paged array of dogs", "content": { "application/json": { "schema": { "type": "integer" } } } } } } }, "/pets2": { "get": { "summary": "List all dogs", "operationId": "listDogs", "parameters": [ { "name": "username", "in": "path", "required": true, "schema": { "type": "string" } }, { "name": "stays", "in": "query", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "A paged array of dogs", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Dogs" } } } } } } } }, "components": { "schemas": { "Dogs": { "type": "array", "items": { "$ref": "#/components/schemas/Dog" } } } } }