openapi: 3.0.0 info: version: '1' title: bug servers: - url: 'https://petstore.swagger.io/v1' paths: /listPets: get: summary: 'Sample endpoint: Returns details about a particular user' operationId: listPets tags: - user responses: '200': description: 'Sample response: Details about a user by ID' headers: x-next: description: A link to the next page of responses schema: type: string content: application/json: schema: $ref: '#/components/schemas/User' default: description: Unexpected error content: application/json: schema: $ref: '#/components/schemas/Error' components: schemas: User: type: object required: - petNames properties: petNames: type: array items: type: string example: petNames: ['one','two','three'] Error: type: object required: - code - message properties: code: type: integer format: int32 message: type: string securitySchemes: BasicAuth: type: http scheme: basic security: - BasicAuth: []