github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2448/fixture-2448.yaml (about)

     1  swagger: '2.0'
     2  info:
     3    title: number validations
     4    version: '1.0.0'
     5  host: localhost
     6  basePath: /
     7  consumes:
     8    - application/json
     9  produces:
    10    - application/json
    11  schemes:
    12    - http
    13  paths:
    14    /integers:
    15      get:
    16        operationId: "getIntegers"
    17        parameters:
    18        - name: i0
    19          in: query
    20          type: integer
    21          minimum: 10
    22          exclusiveMinimum: true
    23          maximum: 100
    24          exclusiveMaximum: true
    25          multipleOf: 10
    26        - name: i1
    27          in: query
    28          type: integer
    29          format: int32
    30          minimum: 10
    31          exclusiveMinimum: true
    32          maximum: 100
    33          exclusiveMaximum: true
    34          multipleOf: 10
    35        - name: i2
    36          in: query
    37          type: integer
    38          format: int64
    39          minimum: 10
    40          exclusiveMinimum: true
    41          maximum: 100
    42          exclusiveMaximum: true
    43          multipleOf: 10
    44        # extra integer formats supported by go-swagger
    45        - name: ui1
    46          in: query
    47          type: integer
    48          format: uint32
    49          minimum: 10
    50          exclusiveMinimum: true
    51          maximum: 100
    52          exclusiveMaximum: true
    53          multipleOf: 10
    54        - name: ui2
    55          in: query
    56          type: integer
    57          format: uint64
    58          minimum: 10
    59          exclusiveMinimum: true
    60          maximum: 100
    61          exclusiveMaximum: true
    62          multipleOf: 10
    63        - name: i3
    64          in: query
    65          type: integer
    66          format: int16
    67          minimum: 10
    68          exclusiveMinimum: true
    69          maximum: 100
    70          exclusiveMaximum: true
    71          multipleOf: 10
    72        - name: ui3
    73          in: query
    74          type: integer
    75          format: uint16
    76          minimum: 10
    77          exclusiveMinimum: true
    78          maximum: 100
    79          exclusiveMaximum: true
    80          multipleOf: 10
    81        # edge case: multipleOf integer with float factor
    82        - name: i4
    83          in: query
    84          type: integer
    85          format: int16
    86          multipleOf: 10.5
    87        - name: ui4
    88          in: query
    89          type: integer
    90          format: uint16
    91          multipleOf: 10.5
    92        responses:
    93          200:
    94            description: ok
    95            schema:
    96              $ref: '#/definitions/integers'
    97    /numbers:
    98      get:
    99        operationId: "getNumbers"
   100        parameters:
   101        - name: f0
   102          in: query
   103          type: number
   104          minimum: 10
   105          exclusiveMinimum: true
   106          maximum: 100
   107          multipleOf: 10
   108        - name: f1
   109          in: query
   110          type: number
   111          format: float
   112          minimum: 10
   113          exclusiveMinimum: true
   114          maximum: 100
   115          exclusiveMaximum: true
   116          multipleOf: 10
   117        - name: f2
   118          in: query
   119          type: number
   120          format: double
   121          minimum: 10
   122          exclusiveMinimum: true
   123          maximum: 100
   124          exclusiveMaximum: true
   125          multipleOf: 10
   126        responses:
   127          200:
   128            description: ok
   129            schema:
   130              $ref: '#/definitions/numbers'
   131  
   132  definitions:
   133    integers:
   134      type: object
   135      properties:
   136        i0:
   137          type: integer
   138          minimum: 10
   139          exclusiveMinimum: true
   140          maximum: 100
   141          exclusiveMaximum: true
   142          multipleOf: 10
   143        i1:
   144          type: integer
   145          format: int32
   146          minimum: 10
   147          exclusiveMinimum: true
   148          maximum: 100
   149          exclusiveMaximum: true
   150          multipleOf: 10
   151        i2:
   152          type: integer
   153          format: int64
   154          minimum: 10
   155          exclusiveMinimum: true
   156          maximum: 100
   157          exclusiveMaximum: true
   158          multipleOf: 10
   159        i3:
   160          type: integer
   161          format: int16
   162          minimum: 10
   163          exclusiveMinimum: true
   164          maximum: 100
   165          exclusiveMaximum: true
   166          multipleOf: 10
   167        ui1:
   168          type: integer
   169          format: uint32
   170          minimum: 10
   171          exclusiveMinimum: true
   172          maximum: 100
   173          exclusiveMaximum: true
   174          multipleOf: 10
   175        ui2:
   176          type: integer
   177          format: uint64
   178          minimum: 10
   179          exclusiveMinimum: true
   180          maximum: 100
   181          exclusiveMaximum: true
   182          multipleOf: 10
   183        ui3:
   184          type: integer
   185          format: uint16
   186          minimum: 10
   187          exclusiveMinimum: true
   188          maximum: 100
   189          exclusiveMaximum: true
   190          multipleOf: 10
   191        # edge case: multipleOf integer with float factor
   192        i4:
   193          type: integer
   194          format: int16
   195          multipleOf: 10.5
   196        ui4:
   197          type: integer
   198          format: uint16
   199          multipleOf: 10.5
   200    numbers:
   201      type: object
   202      properties:
   203        f0:
   204          type: number
   205          minimum: 10
   206          exclusiveMinimum: true
   207          maximum: 100
   208          exclusiveMaximum: true
   209          multipleOf: 10
   210        f1:
   211          type: number
   212          format: float
   213          minimum: 10
   214          exclusiveMinimum: true
   215          maximum: 100
   216          exclusiveMaximum: true
   217          multipleOf: 10
   218        f2:
   219          type: number
   220          format: double
   221          minimum: 10
   222          exclusiveMinimum: true
   223          maximum: 100
   224          exclusiveMaximum: true
   225          multipleOf: 10