github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/1537/fixture-1537-2.yaml (about) 1 --- 2 swagger: "2.0" 3 info: 4 title: "param body required with array of aliased items" 5 version: "0.0.1" 6 description: "repro issue 1537" 7 license: 8 name: "Apache 2.0" 9 url: "http://www.apache.org/licenses/LICENSE-2.0.html" 10 definitions: 11 profileCfg: 12 type: object 13 properties: 14 value1: 15 type: integer 16 format: int32 17 value2: 18 type: integer 19 format: int32 20 profileCfgs: 21 type: array 22 x-omitempty: true 23 maxItems: 10 24 items: 25 $ref: '#/definitions/profileCfg' 26 profileCfgsNoValidation: 27 type: array 28 x-omitempty: true 29 items: 30 $ref: '#/definitions/profileCfg' 31 Profiles: 32 type: array 33 items: 34 $ref: '#/definitions/profileCfgs' 35 ProfilesNoValidation: 36 type: array 37 items: 38 $ref: '#/definitions/profileCfgsNoValidation' 39 paths: 40 /getProfiles: 41 get: 42 operationId: getProfiles 43 parameters: 44 - name: profilesInBody 45 in: body 46 required: false 47 schema: 48 $ref: '#/definitions/Profiles' 49 responses: 50 200: 51 description: "OK"