UNPKG

@readme/oas-examples

Version:

A collection of example OpenAPI 3.x and Swagger 2.0 documents.

63 lines (62 loc) 1.3 kB
{ "openapi": "3.0.1", "info": { "title": "API definition with a circular $ref", "version": "1.0.0" }, "servers": [ { "url": "https://httpbin.org" } ], "paths": { "/anything": { "get": { "responses": { "200": { "description": "OK" }, "404": { "description": "Not found", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/ErrorMessage" } } } } } } } }, "components": { "schemas": { "ErrorMessage": { "type": "object", "additionalProperties": false, "properties": { "statusCode": { "type": "integer", "format": "int32" }, "error": { "type": "string", "nullable": true }, "inner": { "$ref": "#/components/schemas/ErrorMessage" }, "canBeRetried": { "type": "string", "enum": ["Unknown", "Yes", "No"] }, "detailedErrorCode": { "type": "integer", "format": "int32" } } } } } }