---
swagger: '2.0'
info:
  title: 'fixture for issue #581'
  version: '1.0'
  description: |
    This one just to set a minimum/maximum valid case for non regression.
    It exersises, for integers:
      - inline parameters
      - schema parameters
      - schema parameters through $ref
      - schema for response
      - schema object for response, with object and array
      - schema for response through $ref


produces:
  - application/json
paths:
  /fixture:
    get:
      operationId: op1
      parameters:
        - name: myid
          in: body
          schema:
            $ref: '#/definitions/myId'
      responses:
        200:
          description: 'response exercising integer boundaries'
          schema:
            $ref: '#/definitions/someIds'
        201:
          description: 'response exercising integer boundaries'
          schema:
            type: integer
            minimum: 0
            maximum: 100
            default: 0
        401:
          description: 'response exercising integer boundaries'
          schema:
            type: object
            properties:
              shortInt:
                type: integer
                minimum: 0
                maximum: 100
                default: 0
              shortIntList:
                type: array
                items:
                  type: integer
                  minimum: 0
                  maximum: 100
                  default: 0

definitions:
  myId:
    type: object
    properties:
      smallId:
        type: integer
        minimum: 0
        maximum: 12
        default: 10
        format: uint64
  someIds:
    type: object
    properties:
      smallId:
        type: integer
        minimum: 0
        maximum: 12
        default: 10
        format: uint64
      smallIdList:
        type: array
        items:
          type: integer
          minimum: 0
          maximum: 100
          default: 0
