github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/844/swagger-bis.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 "parameters": [ 24 { 25 "name": "getAllOfInBody", 26 "in": "body", 27 "schema": { 28 "allOf": [ 29 { 30 "$ref": "#/definitions/foo" 31 }, 32 { 33 "$ref": "#/definitions/bar" 34 } 35 ] 36 } 37 } 38 ], 39 "responses": { 40 "200": { 41 "description": "OK", 42 "schema": { 43 "allOf": [ 44 { 45 "$ref": "#/definitions/foo" 46 }, 47 { 48 "$ref": "#/definitions/bar" 49 } 50 ] 51 } 52 } 53 } 54 } 55 } 56 } 57 }