Skip to content

Using a single Body parameter, the JSON format will report an error #1095

@wxq0309

Description

@wxq0309

Description

Using a single Body parameter, the JSON format will report an error

Additional context

@router.post("/test/")
async def test(abd: str=Body(...)):
    print(abd)               ---error

@router.post("/test/")
async def test(abd: str=Body(...), acd: str=Body(...)):
    print(abd)               ---right

Using a single Body parameter, the JSON format will report an error

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