-
Notifications
You must be signed in to change notification settings - Fork 34
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
Bbox behavior different from spec #125
Comments
For
you can avoid this by using pydantic option
|
Yeah, it's ok that |
Sadly I don't think there is an easy way to Note: this is also true for Feature |
Would be too aggressive to override |
@eseglem do you think we should update the |
@vincentsarago Probably worth taking a look. Optional keywords that are not actually nullable are still not great in Pydantic. I don't think I like messing with I think the best bet might be |
Are there any plans to make these changes to |
@SamuelWillis we don't have any plan to backport this feature to 0.6.x but I'm happy to review any PR 🙏 |
@vincentsarago I'll see if I can find time here, I'm fairly new to python but I assume the solutions will be similar/the same? |
Current Behavior
When we initialize any GeoJson type without passing a
bbox
, it's setted tonull
.Will print
Expected Behavior
From the standard, at the definition of a GeoJSON Object:
Then, from the section on bounding boxes:
In other words, when passing no
bbox
, the parsed geometry should contain nobbox
fields.The text was updated successfully, but these errors were encountered: