github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/1487/fixture-errors.yaml (about) 1 swagger: '2.0' 2 3 info: 4 version: "1.0.0" 5 title: fixture with erroneous statements 6 description: see how the codegen reacts with invalid things (used to cover error cases in UT) 7 produces: 8 - application/json 9 consumes: 10 - application/json 11 paths: 12 /models: 13 get: 14 operationId: modelOp 15 summary: many model variations 16 description: no description 17 tags: 18 - testcgen 19 responses: 20 default: 21 description: Generic Out 22 definitions: 23 arrayWithoutItems: 24 description: in swagger, an array **MUST** have an items schema 25 type: array 26 multipleTypes: 27 description: 'in swagger, an array **MUST** have an items schema: therefore this definition is invalid' 28 type: [ object, array ]