fastapi-crudrouter
fastapi-crudrouter copied to clipboard
Fix 404 on openapi spec
I'm running into issues when running the following command, against an API generated by fastapi-crudrouter (which is great btw 🥇 )
>> openapi-generator validate -i http://127.0.0.1:8000/openapi.json
Validating spec (http://127.0.0.1:8000/openapi.json)
Errors:
- attribute paths.'/tag/{item_id}'(get).responses.404.detail is unexpected
- attribute paths.'/project/{item_id}'(get).responses.404.detail is unexpected
- attribute paths.'/tag/{item_id}'(delete).responses.404.detail is unexpected
- attribute paths.'/project/{item_id}'(delete).responses.404.detail is unexpected
- attribute paths.'/project/{item_id}'(put).responses.404.detail is unexpected
- attribute paths.'/tag/{item_id}'(put).responses.404.detail is unexpected
[error] Spec has 6 errors.
I believe this PR resolves https://github.com/awtkns/fastapi-crudrouter/issues/105. Picking up on the great example left by @sondrelg at https://github.com/awtkns/fastapi-crudrouter/pull/104.
I believe this should also help resolve this PR https://github.com/awtkns/fastapi-crudrouter/pull/141.
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/flortz/fastapi-crudrouter/wjdX8HyZ9AsH8dj8cCqgaxWhnvpm
✅ Preview: https://fastapi-crudrouter-git-fork-dimmaski-105-404-openapi-fix-flortz.vercel.app
I can confirm that this is an issue. Can you please fix the lint issue?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
fastapi-crudrouter | ✅ Ready (Inspect) | Visit Preview | May 31, 2022 at 7:42PM (UTC) |
@mitaka, giving it a try :)
Someone is attempting to deploy a commit to a Personal Account owned by @awtkns on Vercel.
@awtkns first needs to authorize it.