github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/codegen/strict-additional-properties.yml (about) 1 swagger: '2.0' 2 info: 3 title: Test for strict additional properties 4 version: 0.0.1 5 consumes: 6 - application/json 7 produces: 8 - application/json 9 10 paths: 11 /test: 12 post: 13 parameters: 14 - name: body 15 in: body 16 schema: 17 type: object 18 additionalProperties: false 19 properties: 20 foo: 21 type: boolean 22 bar: 23 type: number 24 implicit: 25 type: object 26 properties: 27 baz: 28 type: boolean 29 explicit: 30 type: object 31 additionalProperties: false 32 properties: 33 baz: 34 type: boolean 35 disabled: 36 type: object 37 additionalProperties: true 38 properties: 39 baz: 40 type: boolean 41 responses: 42 200: 43 44 /unused: 45 post: 46 parameters: 47 - name: body 48 in: body 49 schema: 50 $ref: '#/definitions/Body' 51 responses: 52 200: 53 54 definitions: 55 Body: 56 type: object 57 additionalProperties: false 58 properties: 59 foo: 60 type: boolean 61 bar: 62 type: number 63 implicit: 64 type: object 65 properties: 66 baz: 67 type: boolean 68 explicit: 69 type: object 70 additionalProperties: false 71 properties: 72 baz: 73 type: boolean 74 disabled: 75 type: object 76 additionalProperties: true 77 properties: 78 baz: 79 type: boolean