Skip to content

feat: PDFをダウンロードするAPIの型 #60

Closed
@m-haketa

Description

@m-haketa

freeeAPIスキーマ
https://raw.githubusercontent.com/freee/freee-api-schema/master/v2020_06_15/open-api-3/api-schema.yml
の下記の箇所

paths:
  "/api/1/journals/reports/{id}/download"
    get:
      responses:
        '200':
          content:
            application/pdf:
              schema:
                format: binary
                type: string

他、

          content:
            image/*:
              schema:
                format: binary
                type: string

というパターンもあります。

The current behavior

返り値の型が「string」になる

The expected behavior

blobなどbinary系の型を付ける

なお、実際にどの型を付けるべきかは、ユーザ側の環境依存で変わる可能性が高いので、ユーザ側で付ける型を変えられれば理想的だと思います

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions