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

Response model is missing in the OpenAPI spec and Swagger for @cache decorated endpoints #384

Open
arseniiarsenii opened this issue Jan 24, 2024 · 1 comment · May be fixed by #390
Open

Comments

@arseniiarsenii
Copy link

I've noticed, that response model is missing in the OpenAPI spec and Swagger for @cache decorated endpoints unless response_model is specified explicitly in the endpoint handler decorator, which is optional for newer versions of FastAPI. Specifying return type annotation of a handler function should be enough.

Versions (from pyproject.toml):

@mkdir700
Copy link
Contributor

mkdir700 commented Feb 2, 2024

Thank you for your feedback, I will try to fix it.

mkdir700 pushed a commit to mkdir700/fastapi-cache that referenced this issue Feb 2, 2024
@mkdir700 mkdir700 linked a pull request Feb 2, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants