-
Notifications
You must be signed in to change notification settings - Fork 100
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
Datetime as null is not accepted by the STAC FASTAPI #637
Comments
Working on understanding issue here... when you upload the attached JSON which has the If this is the case, I would say it is very common for JSON encoders to drop keys that correspond to How are you generating the POST request? |
The JSON file has the |
@zachcoleman, basically it seems that the JSON encoder inside this project drops |
What backend are you using @sylar11? I would like to try and recreate the issue. Looking over the possible places that |
pgstac has an open issue that may be related. |
stac-utils/stac-pydantic#135 addresses this issue. But there are still a couple of PRs in front of this before this can be merged. |
@zachcoleman we are using PgSTAC as backend. Please let me know if you need more information to reproduce the issue. |
should be resolved with the latest updates |
Hi all,
if I try to upload the following STAC item file:
STAC item
If I validate this item via STAC Lint, it says that the item is correct; but, on the contrary, once I post in the STACAPI I get an error in the validation. Looking at the uploaded JSON file it shows that the property
"datetime":null
is not there and, as a consequence, it cannot be validated.Is this an API bug? or am I doing something wrong?
The text was updated successfully, but these errors were encountered: