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 item bbox field validation #114

Merged
merged 1 commit into from
May 2, 2022

Conversation

yellowcap
Copy link
Contributor

The @validator tag does not receive the value of the geometry field. So for the cross validation, in this case it is necessary to use the @root_validator .

I think this related to the fact that the geometry field comes from a parent class of the Item, that is why it is not passed to the regular @validator tag. But I could not find this behavior documented in the pydantic docs, so its unconfirmed.

Closes #113

@moradology moradology merged commit 7c2482a into stac-utils:master May 2, 2022
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.

Bug in bbox validation
2 participants