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

Fail to import if both pydantic or msgspec are unavailable #92

Open
lordmauve opened this issue Oct 20, 2024 · 0 comments
Open

Fail to import if both pydantic or msgspec are unavailable #92

lordmauve opened this issue Oct 20, 2024 · 0 comments

Comments

@lordmauve
Copy link

Version: quart-schema==0.20.0

For unknown reasons, the pydantic dependency in my project was specified directly in project.requirements rather than as quart-schema[pydantic]. After finding no usages of pydantic in the project this dependency was cleaned up.

This led to the baffling situation where various views were just serving HTTP 400, with a generic

Bad Request

The browser (or proxy) sent a request that this server could not understand.

I would suggest making the package unimportable if the required dependencies are not satisfied, rather than failing only at the point of performing a validation.

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