github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/1171/swagger.yaml (about) 1 # In this one we make sure arrays without items are detected by validation 2 # Conversely, objects with items are detected with fixture for issue #1238 3 swagger: '2.0' 4 info: 5 title: issue-1171 6 version: 0.0.1 7 license: 8 name: MIT 9 host: localhost:8081 10 basePath: /api/v1 11 schemes: 12 - http 13 consumes: 14 - application/json 15 produces: 16 - application/json 17 paths: 18 '/servers/{server_id}/zones': 19 get: 20 operationId: listZones 21 tags: 22 - zones 23 parameters: 24 - name: server_id 25 in: path 26 required: true 27 type: string 28 responses: 29 '200': 30 description: An array of Zones 31 schema: 32 $ref: '#/definitions/Zones' 33 34 '/servers/{server_id}/zones/{zone_id}': 35 get: 36 operationId: listZone 37 tags: 38 - zones 39 parameters: 40 - name: server_id 41 in: path 42 required: true 43 type: string 44 - name: zone_id 45 type: string 46 in: path 47 required: true 48 responses: 49 '200': 50 description: A Zone 51 schema: 52 $ref: '#/definitions/Zone' 53 54 55 definitions: 56 Zones: 57 type: array 58 properties: 59 name: 60 type: string 61 62 Zone: 63 type: array 64 items: 65 name: 66 type: string