Skip to content

Support body in GET and other methods with undefined behavior #713

@heckad

Description

@heckad

Describe the bug
In new version of rest api specification get methods can have body but fastapi not add it to swagger spec.

To Reproduce
Steps to reproduce the behavior:
Create get method with some body parameters.

Expected behavior
Body parameters present in the specification.

Environment:

  • OS: Windows

  • FastAPI Version: 0.42.0

  • Python version, get it with: 3.8

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions