Skip to content

Support OpenAPI 3.1 contentMediaType #1137

@briceruzand

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions