github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/1897/fixture-1897.yaml (about) 1 --- 2 swagger: "2.0" 3 info: 4 title: "repro #1897" 5 version: "0.0.1" 6 description: "repro issue #1897" 7 license: 8 name: "Apache 2.0" 9 url: "http://www.apache.org/licenses/LICENSE-2.0.html" 10 paths: 11 "/as-schema": 12 get: 13 responses: 14 201: 15 description: ok 16 schema: 17 $ref: "#/definitions/Partial" 18 19 "/inline1": 20 get: 21 responses: 22 201: 23 description: ok 24 schema: 25 type: object 26 required: [a, errors] 27 properties: 28 a: 29 $ref: "#/definitions/A" 30 errors: 31 type: object 32 properties: 33 errors: 34 $ref: "#/definitions/Error" 35 errorAs: 36 type: array 37 items: 38 type: string 39 40 400: 41 description: ok 42 schema: 43 $ref: "#/definitions/Error" 44 45 definitions: 46 A: 47 type: string 48 49 Partial: 50 type: object 51 required: [a, errors] 52 properties: 53 a: 54 $ref: "#/definitions/A" 55 errors: 56 type: object 57 properties: 58 errors: 59 $ref: "#/definitions/Error" 60 errorAs: 61 type: array 62 items: 63 type: string 64 Error: 65 type: object 66 required: [code] 67 properties: 68 code: 69 type: integer 70 x-go-type: 71 type: Error 72 import: 73 package: github.com/go-swagger/go-swagger/fixtures/bugs/1897/external 74 alias: swaggermodels 75