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

     1  ---
     2    swagger: "2.0"
     3    info:
     4      title: "validations inconsistent with schema type"
     5      version: "0.0.1"
     6      description: "inconsistent validations"
     7      license:
     8        name: "Apache 2.0"
     9        url: "http://www.apache.org/licenses/LICENSE-2.0.html"
    10    definitions:
    11      obj:
    12        type: object
    13        properties:
    14          a:
    15            type: number
    16            format: double
    17            maximum: 1000000000
    18            minimum: 1
    19            pattern: "[-]?\\d+(.\\d{1,2})?"
    20            maxLength: 13
    21            minLength: 1
    22          b:
    23            type: string
    24            minimum: 13
    25            maxLength: 5
    26          c:
    27            type: string
    28            maximum: 144
    29            maxLength: 5
    30            multipleOf: 12
    31            enum: [ 'a', 'b' ]
    32          d:
    33            type: boolean
    34            maximum: 15
    35            exclusiveMaximum: true
    36            minimum: 1
    37            exclusiveMinimum: true
    38            minProperties: 12
    39          e:
    40            type: object
    41            maximum: 15
    42            minProperties: 12
    43            uniqueItems: true
    44            enum: [ {"x": 1} ]
    45          f:
    46            type: array
    47            uniqueItems: true
    48            minimum: 15
    49            items:
    50              type: object
    51              minProperties: 13
    52              maximum: 15
    53          g:
    54            type: integer
    55            maximum: 10
    56            minimum: 1
    57            pattern: "[-]?\\d+(.\\d{1,2})?"
    58            maxLength: 13
    59            minLength: 1
    60            maxProperties: 12
    61  
    62          #h:
    63          #  type: file
    64          #  maximum: 10
    65          #  minimum: 1
    66          #  pattern: "[-]?\\d+(.\\d{1,2})?"
    67          #  maxLength: 13
    68          #  minLength: 1
    69          #  maxProperties: 12
    70  
    71    paths:
    72      /getRecords:
    73        get:
    74          operationId: getRecords
    75          parameters:
    76            - name: records
    77              in: body
    78              required: true
    79              schema:
    80                $ref: '#/definitions/obj'
    81          responses:
    82            200:
    83              description: "OK"