github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/844/swagger.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "title": "anyOf bug", 5 "version": "0.0.1", 6 "description": "repro", 7 "license": { 8 "name": "Apache 2.0", 9 "url": "http://www.apache.org/licenses/LICENSE-2.0.html" 10 } 11 }, 12 "definitions": { 13 "foo": { 14 "type": "object" 15 }, 16 "bar": { 17 "type": "object" 18 } 19 }, 20 "paths": { 21 "/": { 22 "get": { 23 "responses": { 24 "200": { 25 "description": "OK", 26 "schema": { 27 "allOf": [ 28 { 29 "$ref": "#/definitions/foo" 30 }, 31 { 32 "$ref": "#/definitions/bar" 33 } 34 ] 35 } 36 } 37 } 38 } 39 } 40 } 41 }