github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/1042/fixture-1042-2.yaml (about) 1 swagger: "2.0" 2 info: 3 title: allOf marshalling 4 description: | 5 when the specification incorrectly defines the allOf, 6 generated unmarshalling is wrong. 7 This fixture asserts that with correct spec, the generated models are correct. 8 version: "0.0" 9 10 basePath: "/test" 11 12 paths: 13 "/allof": 14 get: 15 responses: 16 '200': 17 description: test 18 schema: 19 "$ref": "#/definitions/ExtendedErrorModel" 20 21 definitions: 22 ErrorModel: 23 type: object 24 required: 25 - message 26 - code 27 properties: 28 message: 29 type: string 30 code: 31 type: integer 32 minimum: 100 33 maximum: 600 34 ExtendedErrorModel: 35 allOf: 36 - $ref: '#/definitions/ErrorModel' 37 - type: object 38 required: 39 - rootCause 40 properties: 41 rootCause: 42 type: string