Skip to content

Support OpenAPI 3.1 contentMediaType #1137

Description

@briceruzand

Hi,

I am using rapidoc with fastapi, since fastapi/fastapi#14953 , it generate OpenAPI 3.1 spec and rapidoc upload form do not work any more.

References :

# OpenAPI 3.0
requestBody:
  content:
    multipart/form-data:
      schema:
       type: object
       properties:
        orderId:
          type: integer
        fileName:
          type: string
          format: binary
# OpenAPI 3.1
requestBody:
  content:
    multipart/form-data:
      schema:
       type: object
       properties:
        orderId:
          type: integer
        fileName:
          type: string
          contentMediaType: application/octet-stream

Thx a lot.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions