Skip to content

OpenAPI requestBody application/x-www-form-urlencoded #160

@lfanselau

Description

@lfanselau

Hi, great library so far! I have a problem when implementing an authentication flow with FastAPI (as by their tutorial https://fastapi.tiangolo.com/tutorial/security/simple-oauth2/#use-the-form-data). The tutorial uses FormData for passing in the username and password. Investigating, this gets parsed into the openapi.json like this:

{
  "requestBody": {
    "content": {
      "application/x-www-form-urlencoded": { ... }
    }
  }
}

The problem seems to be, that this media type is not supported here:

Any plans to update this behavior, since manually changing the types is really cumbersome when they get overwritten...

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