Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Structural error for 404 HTTPException #155

Open
AthreyVinay opened this issue Apr 22, 2022 · 0 comments
Open

Structural error for 404 HTTPException #155

AthreyVinay opened this issue Apr 22, 2022 · 0 comments

Comments

@AthreyVinay
Copy link

Hi All - a bit confused where to create this -- whether here or FastAPI. Please let me know where -- but I'll post here first :)

So I use the CRUD router to auto-generate the /items/{item_id} route which calls FastAPI's HTTPException 404 in case item_id is not found. When I try to copy out the generated openapi.json in swagger-editor, I get the following:

Structural error at paths./items/{item_id}.get.responses.404
should NOT have additional properties
additionalProperty: detail

I am unable to fix this - any help is appreciated, thanks in advance.

AVR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant