github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2962/new.json (about) 1 { 2 "swagger": "2.0", 3 "info": { 4 "title": "Swagger Fixture", 5 "version": "1.0" 6 }, 7 "paths": { 8 "/a/{id}": { 9 "post": { 10 "parameters": [ 11 { 12 "name": "", 13 "in": "body", 14 "schema": { "$ref": "#/definitions/A2" } 15 } 16 ], 17 "responses": { 18 "200": { 19 "description": "200 response", 20 "schema": { "$ref": "#/definitions/A3" } 21 } 22 } 23 } 24 } 25 }, 26 "definitions": { 27 "A2": { 28 "type": "object", 29 "required": [ "name", "field4" ], 30 "properties": { 31 "name": { "type": "string" }, 32 "description": { "type": "string" }, 33 "field3": { "type": "string" }, 34 "field4": { "type": "string" } 35 } 36 }, 37 "A3": { 38 "type": "object", 39 "properties": { 40 "id": { "type": "integer" }, 41 "name": { "type": "string" }, 42 "otherDeletedName":{"type":"string","deprecated":true}, 43 "description": { "type": "string" }, 44 "letters": { 45 "type": "array", 46 "items": { "type": "string" } 47 }, 48 "attributes": { 49 "type": "object", 50 "additionalProperties": { "type": "string" } 51 } 52 } 53 } 54 } 55 }