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

Validate coordinates in address and coverage_area #14

Open
2 tasks
cantoniazzi opened this issue Mar 24, 2021 · 0 comments
Open
2 tasks

Validate coordinates in address and coverage_area #14

cantoniazzi opened this issue Mar 24, 2021 · 0 comments
Labels
critical enhancement New feature or request

Comments

@cantoniazzi
Copy link
Owner

cantoniazzi commented Mar 24, 2021

What

We need to add a validator in the schema to validate the coordinates fields respecting the rule below:

   lat le=90, ge=-90 
   long le=180, ge=-180

Why

We need to guarantee the integrity of these fields.

Tasks

  • validators:
  • integration tests;

References

https://pydantic-docs.helpmanual.io/usage/validators/

@cantoniazzi cantoniazzi added enhancement New feature or request critical labels Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
critical enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant