github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/enhancements/guard-formats/fixture-guard-formats.yaml (about) 1 swagger: '2.0' 2 basePath: / 3 host: localhost 4 info: 5 version: 0.1.0 6 title: Check format validations 7 termsOfService: | 8 There are actually none. 9 license: 10 name: 'Apache 2.0' 11 url: https://www.apache.org/licenses/LICENSE-2.0 12 13 consumes: 14 - application/json 15 produces: 16 - application/json 17 paths: 18 /{p0}/{p1}: 19 get: 20 parameters: 21 - name: body 22 in: body 23 schema: 24 $ref: '#/definitions/object' 25 - name: p0 26 in: path 27 required: true 28 type: string 29 pattern: '(\d+)-(\d+)' 30 minLength: 12 31 maxLength: 16 32 - name: p1 33 required: true 34 in: path 35 type: string 36 format: date 37 pattern: '(\d+)/(\d+)' 38 minLength: 12 39 maxLength: 16 40 - name: p2 41 in: query 42 type: string 43 format: uuid 44 pattern: '(\d+)-(\d+)' 45 minLength: 12 46 maxLength: 16 47 - name: p3 48 in: query 49 type: string 50 format: datetime 51 pattern: '(\d+)-(\d+)' 52 minLength: 12 53 maxLength: 16 54 - name: p4 55 in: query 56 type: string 57 format: bsonobjectid 58 pattern: '(\d+)-(\d+)' 59 minLength: 12 60 maxLength: 16 61 - name: p5 62 in: query 63 type: string 64 format: duration 65 pattern: '(\d+)-(\d+)' 66 minLength: 12 67 maxLength: 16 68 - name: p6 69 in: query 70 type: string 71 format: byte 72 pattern: '(\d+)-(\d+)' 73 minLength: 12 74 maxLength: 16 75 responses: 76 default: 77 description: error 78 79 /: 80 post: 81 consumes: 82 - multipart/form-data 83 parameters: 84 - name: upload 85 required: true 86 in: formData 87 type: file 88 pattern: '(\d+)-(\d+)' 89 minLength: 12 90 maxLength: 16 91 responses: 92 default: 93 description: error 94 95 definitions: 96 object: 97 required: [ p0, p1, p7, p8, p9, p10, p11 ] 98 properties: 99 p0: 100 type: string 101 pattern: '(\d+)-(\d+)' 102 minLength: 12 103 maxLength: 16 104 p1: 105 type: string 106 format: date 107 pattern: '(\d+)/(\d+)' 108 minLength: 12 109 maxLength: 16 110 p1Nullable: 111 type: string 112 format: date 113 pattern: '(\d+)/(\d+)' 114 minLength: 12 115 maxLength: 16 116 x-nullable: true 117 p2: 118 type: string 119 format: uuid 120 pattern: '(\d+)-(\d+)' 121 minLength: 12 122 maxLength: 16 123 p3: 124 type: string 125 format: datetime 126 pattern: '(\d+)-(\d+)' 127 minLength: 12 128 maxLength: 16 129 p4: 130 type: string 131 format: bsonobjectid 132 pattern: '(\d+)-(\d+)' 133 minLength: 12 134 maxLength: 16 135 p5: 136 type: string 137 format: duration 138 pattern: '(\d+)-(\d+)' 139 minLength: 12 140 maxLength: 16 141 p6: 142 type: string 143 format: byte 144 pattern: '(\d+)-(\d+)' 145 minLength: 12 146 maxLength: 16 147 p7: 148 type: string 149 format: binary 150 pattern: '(\d+)-(\d+)' 151 minLength: 12 152 maxLength: 16 153 p8: 154 $ref: '#/definitions/aliasedDate' 155 p9: 156 $ref: '#/definitions/aliasedReader' 157 p10: 158 type: string 159 pattern: '(\d+)-(\d+)' 160 minLength: 12 161 maxLength: 16 162 x-nullable: false 163 p11: 164 $ref: '#/definitions/aliasedString' 165 166 aliasedDate: 167 type: string 168 format: date 169 pattern: '(\d+)/(\d+)' 170 minLength: 16 171 maxLength: 20 172 173 aliasedReader: 174 type: string 175 format: binary 176 pattern: '(\d+)/(\d+)' 177 minLength: 16 178 maxLength: 20 179 aliasedString: 180 type: string 181 pattern: '(\d+)/(\d+)' 182 minLength: 16 183 maxLength: 20