Open2

OpenAPI Specification のメモ

marlowemarlowe

複数のクエリパラメーターを渡す例

parameters:
  - name: param
    in: query
    schema:
      type: array
      items:
        type: string
        enum:
          - hoge
          - huga
    style: form
    explode: false
marlowemarlowe

参照系

schema:
  $ref: '#/components/schemas/Hoge'
schema:
  type: object
  properties:
    huga:
      $ref: '#/components/schemas/Huga'