fork of hey-api/openapi-ts because I need some additional things
at main 53 lines 1.1 kB view raw
1{ 2 "openapi": "3.0.1", 3 "info": { 4 "title": "OpenAPI 3.0.1 additional properties true example", 5 "version": "1" 6 }, 7 "components": { 8 "schemas": { 9 "Foo": { 10 "required": ["foo"], 11 "type": "object", 12 "properties": { 13 "foo": { 14 "type": "string" 15 } 16 }, 17 "additionalProperties": true 18 }, 19 "Bar": { 20 "allOf": [ 21 { 22 "$ref": "#/components/schemas/Foo" 23 }, 24 { 25 "type": "object", 26 "additionalProperties": true 27 } 28 ] 29 }, 30 "Baz": { 31 "allOf": [ 32 { 33 "$ref": "#/components/schemas/Foo" 34 }, 35 { 36 "required": ["bar"], 37 "type": "object", 38 "properties": { 39 "bar": { 40 "type": "string" 41 } 42 }, 43 "additionalProperties": true 44 } 45 ] 46 }, 47 "Qux": { 48 "type": "object", 49 "additionalProperties": {} 50 } 51 } 52 } 53}