Something went wrong. Try again.
fork of hey-api/openapi-ts because I need some additional things
Something went wrong. Try again.
1.2 kB · 58 lines
JSON
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859{ "openapi": "3.1.0", "info": { "title": "OpenAPI 3.1.0 ref type example", "version": "1" }, "paths": { "/foo": { "get": { "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Foo", "type": ["object", "null"] } } } } } } } }, "components": { "schemas": { "Foo": { "properties": { "foo": { "items": { "properties": { "baz": { "$ref": "#/components/schemas/Bar", "type": ["object", "null"] } }, "required": ["baz"], "type": "object" }, "type": "array" } }, "required": ["foo"], "type": "object" }, "Bar": { "properties": { "bar": { "type": "integer" } }, "required": ["bar"], "type": "object" } } }}