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