github.com/emreu/go-swagger@v0.22.1/fixtures/codegen/todolist.arrayquery.yml (about) 1 swagger: '2.0' 2 3 info: 4 version: "1.0.0" 5 title: Private to-do list 6 description: | 7 A very simple api description that makes a json only API to submit to do's. 8 9 produces: 10 - application/json 11 12 consumes: 13 - application/json 14 15 paths: 16 /arrayValueQuery/{id}: 17 get: 18 operationId: arrayQueryParams 19 summary: all possible array value query parameters 20 description: Used to see if a codegen can render all the possible parameter variations for a array query param 21 tags: 22 - testcgen 23 parameters: 24 - name: id 25 in: path 26 type: integer 27 format: int32 28 description: The id of the task 29 required: true 30 minimum: 1 31 - name: siString 32 in: query 33 type: array 34 items: 35 minLength: 5 36 maxLength: 50 37 pattern: "[A-Z][\\w-]+" 38 type: string 39 description: a simple string array 40 required: true 41 minItems: 5 42 maxItems: 50 43 collectionFormat: csv 44 - name: siNested 45 in: query 46 type: array 47 items: 48 collectionFormat: pipes 49 type: array 50 items: 51 collectionFormat: csv 52 type: array 53 items: 54 minLength: 5 55 maxLength: 50 56 pattern: "[A-Z][\\w-]+" 57 type: string 58 minItems: 3 59 maxItems: 30 60 minItems: 2 61 maxItems: 20 62 description: a simple string array 63 required: true 64 minItems: 5 65 maxItems: 50 66 collectionFormat: multi 67 - name: siInt 68 in: query 69 description: an integer array property 70 type: array 71 minItems: 5 72 maxItems: 50 73 collectionFormat: pipes 74 items: 75 type: integer 76 multipleOf: 2 77 minimum: 8 78 exclusiveMinimum: true 79 maximum: 100 80 exclusiveMaximum: true 81 - name: siInt32 82 in: query 83 description: an int32 integer array property 84 type: array 85 minItems: 5 86 maxItems: 50 87 collectionFormat: tsv 88 items: 89 type: integer 90 format: int32 91 multipleOf: 2 92 minimum: 8 93 exclusiveMinimum: true 94 maximum: 100 95 exclusiveMaximum: true 96 - name: siInt64 97 in: query 98 description: an int64 integer array property 99 type: array 100 minItems: 5 101 maxItems: 50 102 collectionFormat: ssv 103 items: 104 type: integer 105 format: int64 106 multipleOf: 2 107 minimum: 8 108 exclusiveMinimum: true 109 maximum: 100 110 exclusiveMaximum: true 111 required: true 112 - name: siFloat 113 in: query 114 description: a float array property 115 type: array 116 minItems: 5 117 maxItems: 50 118 collectionFormat: multi 119 items: 120 type: number 121 multipleOf: 1.5 122 minimum: 3 123 exclusiveMinimum: true 124 maximum: 100 125 exclusiveMaximum: true 126 - name: siFloat32 127 in: query 128 description: a float32 float array property 129 type: array 130 minItems: 5 131 maxItems: 50 132 items: 133 type: number 134 format: float 135 multipleOf: 1.5 136 minimum: 3 137 exclusiveMinimum: true 138 maximum: 100 139 exclusiveMaximum: true 140 - name: siFloat64 141 in: query 142 description: a float64 float array property 143 type: array 144 minItems: 5 145 maxItems: 50 146 collectionFormat: pipes 147 items: 148 type: number 149 format: double 150 multipleOf: 1.5 151 minimum: 3 152 exclusiveMinimum: true 153 maximum: 100 154 exclusiveMaximum: true 155 required: true 156 - name: siBool 157 description: a boolean array property 158 in: query 159 type: array 160 minItems: 5 161 maxItems: 50 162 collectionFormat: ssv 163 items: 164 type: boolean 165 required: true 166 responses: 167 default: 168 description: Generic Error 169 200: 170 description: Task list result 171 schema: 172 $ref: "#/definitions/Task" 173 174 definitions: 175 Task: 176 title: A Task object 177 description: | 178 This describes a task. Tasks require a content property to be set. 179 required: 180 - content 181 type: object 182 properties: 183 id: 184 title: the unique id of the task 185 description: | 186 This id property is autogenerated when a task is created. 187 type: integer 188 format: int64 189 readOnly: true 190 content: 191 title: The content of the task 192 description: | 193 Task content can contain [GFM](https://help.github.com/articles/github-flavored-markdown/). 194 type: string 195 minLength: 5 196 completed: 197 title: when true this task is completed 198 type: boolean 199 creditcard: 200 title: the credit card format usage 201 type: string 202 format: creditcard 203 createdAt: 204 title: task creation time 205 type: string 206 format: date-time 207 readOnly: true 208 209