zmievsa / cadwyn

Production-ready community-driven modern Stripe-like API versioning in FastAPI
https://docs.cadwyn.dev/
MIT License
186 stars 24 forks source link

OpenAPI docs show body params as query params #170

Closed isaacharrisholt closed 2 months ago

isaacharrisholt commented 2 months ago

Describe the bug

image

This should show as a body parameter for a POST endpoint with a Pydantic model parameter, e.g.:

@app.post('/test')
async def test(
    input: MyModel
):
    ...

Expected behavior

Should be shown as a body parameter.

isaacharrisholt commented 2 months ago

Closing as it appears to be a FastAPI issue with a discussion here: https://github.com/tiangolo/fastapi/discussions/11472