swagger: '2.0'
info:
  version: 1.0.0
  title: Demo
paths:
  '/test':
    post:
      summary: "Tests default values"
      description: "Tests default values of different parameters"
      operationId: "test"
      parameters:
        - name: pi0
          in: path
          required: true
          type: integer
          default: 10
        - name: pi1
          in: path
          required: true
          type: integer

        - name: pn0
          in: path
          required: true
          type: number
          default: 10
        - name: pn1
          in: path
          required: true
          type: number


        - name: qi0
          in: query
          required: false
          type: integer
          default: 10
        - name: qi1
          in: query
          required: true
          type: integer
          default: 71
        - name: qi2
          in: query
          required: false
          type: integer
        - name: qi3
          in: query
          required: true
          type: integer

        - name: qn0
          in: query
          required: false
          type: number
          default: 10
        - name: qn1
          in: query
          required: true
          type: number
          default: 71
        - name: qn2
          in: query
          required: false
          type: number
        - name: qn3
          in: query
          required: true
          type: number


        - name: hi0
          in: header
          required: false
          type: integer
          default: 10
        - name: hi1
          in: header
          required: true
          type: integer
          default: 71
        - name: hi2
          in: header
          required: false
          type: integer
        - name: hi3
          in: header
          required: true
          type: integer

        - name: hn0
          in: header
          required: false
          type: number
          default: 10
        - name: hn1
          in: header
          required: true
          type: number
          default: 71
        - name: hn2
          in: header
          required: false
          type: number
        - name: hn3
          in: header
          required: true
          type: number


        - name: fi0
          in: formData
          required: false
          type: integer
          default: 10
        - name: fi1
          in: formData
          required: true
          type: integer
          default: 71
        - name: fi2
          in: formData
          required: false
          type: integer
        - name: fi3
          in: formData
          required: true
          type: integer

        - name: fn0
          in: formData
          required: false
          type: number
          default: 10
        - name: fn1
          in: formData
          required: true
          type: number
          default: 71
        - name: fn2
          in: formData
          required: false
          type: number
        - name: fn3
          in: formData
          required: true
          type: number
        - name: fn4
          in: formData
          required: true
          type: array
          items:
            type: string
          default:
            - item0


      responses:
        "200":
          description: "Success"

definitions:
  Apa:
    type: object
    required:
      - i0
      - n0
    properties:
      i0:
        type: integer
        default: 10
      i1:
        type: integer
        default: 20
      n0:
        type: number
        default: 71
      n1:
        type: number
        default: 68
