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

fix: switch isLatitude & isLongitude validators #513

Merged
merged 1 commit into from Mar 26, 2020

Conversation

vschoener
Copy link
Contributor

Hey guys,

I was looking where these functions come from as from validator.js they don't exist, but I found out the type between them was inverted.

Tests are ok when changing those. Maybe I can add a few more to be sure it won't happen again?

@vschoener
Copy link
Contributor Author

Here is what I got when testing a 400:
"isLongitude": "latitude must be a longitude string or number"

@johannesschobel
Copy link

#537 tries to fix this issue as well.. i think, however, the type assignment (that was fixed in this PR) needs to be changed in all cases ;) this looks like a simple copy/paste error..

@vlapo vlapo changed the title Fix issue on Latitude and Longitude type been inverted fix: switch isLatitude & isLongitude validators Mar 26, 2020
@vlapo vlapo merged commit 5497179 into typestack:master Mar 26, 2020
@vlapo
Copy link
Contributor

vlapo commented Mar 26, 2020

Thank you!

@github-actions
Copy link

github-actions bot commented Aug 3, 2020

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants