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

Feat/validate json update #73

Closed

Conversation

p1-dta
Copy link
Contributor

@p1-dta p1-dta commented Jun 13, 2022

What I am changing

  • How the validation is done for Geometry to increase readability of specific type validation.

How I did it

  • Using functools.singledispatchmethod.

How you can test it

  • Run already existing tests.

Important notes

This is for Python >= 3.9. python/cpython#83860

@vincentsarago
Copy link
Member

you can use https://pypi.org/project/singledispatchmethod/ for python <3.8

@p1-dta p1-dta force-pushed the feat/validate_json_update branch from db27a69 to 58b3138 Compare June 13, 2022 13:49
@p1-dta
Copy link
Contributor Author

p1-dta commented Jun 13, 2022

Error: The operation was canceled. for 3.9 and 3.8
and the 3.7 still have the same error in checks, any idea why ?

I tried on local, same error for 3.7.

@@ -6,6 +6,7 @@

from pydantic import BaseModel, Field, ValidationError, validator
from pydantic.error_wrappers import ErrorWrapper
from singledispatchmethod import singledispatchmethod
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vincentsarago
Copy link
Member

Error: The operation was canceled. for 3.9 and 3.8

is because the tests fails directly for 3.7 so GitHub actions kills all the other matrices

@p1-dta
Copy link
Contributor Author

p1-dta commented Jun 14, 2022

This libraries fails on 3.7. I will investigate, but later this week.

@vincentsarago
Copy link
Member

closing this. See #66 (comment)

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 this pull request may close these issues.

None yet

2 participants