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

Cannot import name 'InvalidSchemaFormatValue', need support for openapi-core 0.17.0 #203

Closed
addiexx1 opened this issue Mar 13, 2023 · 4 comments

Comments

@addiexx1
Copy link

I ran into this error when import extract_errors from .exceptions

"pyramid_openapi3/exceptions.py", line 7, in <module>
    from openapi_core.unmarshalling.schemas.exceptions import (
ImportError: cannot import name 'InvalidSchemaFormatValue' from 'openapi_core.unmarshalling.schemas.exceptions' 

Seems like openapi-core 0.17.0 refactored Unmarshallers
https://github.com/python-openapi/openapi-core/releases/tag/0.17.0

@zupo
Copy link
Collaborator

zupo commented Mar 22, 2023

I gave it a quick look to see if it is a trivial fix. It isn't.

@kskarthik
Copy link
Contributor

they dropped the exception in recent releases, right? https://github.com/Pylons/pyramid_openapi3/blob/main/pyramid_openapi3/exceptions.py#L5

@zupo
Copy link
Collaborator

zupo commented Jun 20, 2023

Quite a rewrite, not just dropping a few exceptions. See #206.

@zupo
Copy link
Collaborator

zupo commented Mar 7, 2024

This should now be fixed: #220

@zupo zupo closed this as completed Mar 7, 2024
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

3 participants