Replies: 2 comments 3 replies
-
for reference this was already discussed in #42 |
Beta Was this translation helpful? Give feedback.
2 replies
-
Also not that in
The Tuple Vs List seems to be a long running discussion. For now I'm not quite sure we should change it to List |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I understand the reasoning behind using a
Tuple
in the current implementation. It serializes out to valid GeoJSON, so its not wrong per se. But it does bug me to see it represented as a Tuple in code.For Position something like this should fit the bill. As it allows for 2 or 3 elements.
BBox gets a bit trickier. You can use this:
However your errors end up confusing if you pass it 5 elements:
I was able to come up with this though:
Which is functionally
conlist(float, min_items=4, max_items=6)
plus a validator to make sure its also even.Beta Was this translation helpful? Give feedback.
All reactions