fork of hey-api/openapi-ts because I need some additional things
at main 51 lines 1.1 kB view raw
1{ 2 "openapi": "3.0.4", 3 "info": { 4 "title": "OpenAPI 3.0.4 validators example", 5 "version": "1" 6 }, 7 "components": { 8 "schemas": { 9 "Foo": { 10 "default": null, 11 "nullable": true, 12 "properties": { 13 "foo": { 14 "pattern": "^\\d{3}-\\d{2}-\\d{4}$", 15 "type": "string" 16 }, 17 "bar": { 18 "$ref": "#/components/schemas/Bar" 19 }, 20 "baz": { 21 "items": { 22 "$ref": "#/components/schemas/Foo" 23 }, 24 "type": "array" 25 }, 26 "qux": { 27 "default": 0, 28 "exclusiveMinimum": true, 29 "minimum": 0, 30 "type": "integer" 31 } 32 }, 33 "type": "object" 34 }, 35 "Bar": { 36 "properties": { 37 "foo": { 38 "$ref": "#/components/schemas/Foo" 39 } 40 }, 41 "type": "object" 42 }, 43 "Baz": { 44 "default": "baz", 45 "pattern": "foo\\nbar", 46 "readOnly": true, 47 "type": "string" 48 } 49 } 50 } 51}