github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/enhancements/1771/fixture-1771.yaml (about)

     1  ---
     2    swagger: "2.0"
     3    info:
     4      title: "invalid slice validations in simple parameters"
     5      version: "0.0.1"
     6      description: "repro issue 1771"
     7      license:
     8        name: "Apache 2.0"
     9        url: "http://www.apache.org/licenses/LICENSE-2.0.html"
    10    paths:
    11      /getRecords:
    12        get:
    13          summary: retrieves a batch of key data
    14          parameters:
    15          - name: keys
    16            description: a list of keys to retrieve data for
    17            in: query
    18            type: array
    19            required: true
    20            items:
    21              minItems: 1
    22              maxItems: 10
    23              type: string
    24            collectionFormat: multi
    25          - name: fault1
    26            in: query
    27            type: string
    28            minimum: 12
    29            exclusiveMinimum: true
    30            maximum: 15
    31            exclusiveMaximum: true
    32            multipleOf: 2
    33            minLength: 10
    34          - name: fault2
    35            in: query
    36            type: number
    37            minLength: 1
    38            pattern: "abc"
    39            maxLength: 15
    40            uniqueItems: true
    41            maximum: 20
    42          - name: fault3
    43            in: query
    44            type: integer
    45            minLength: 1
    46            pattern: "abc"
    47            maxLength: 15
    48            uniqueItems: true
    49            maximum: 20
    50          - name: fault4
    51            in: query
    52            type: boolean
    53            minLength: 1
    54            pattern: "abc"
    55            maxLength: 15
    56            uniqueItems: true
    57            maximum: 20
    58          responses:
    59            200:
    60              description: "OK"
    61  
    62      /getFiles:
    63        get:
    64          consumes: [ multipart/form-data ]
    65          parameters:
    66          - name: upload
    67            in: formData
    68            type: file
    69            minLength: 1
    70            pattern: "abc"
    71            maxLength: 15
    72            uniqueItems: true
    73            maximum: 20
    74          responses:
    75            200:
    76              description: "OK"