Jonathan Healy
Jonathan Healy
We have created a cli tool [here](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch?tab=readme-ov-file#ingesting-sample-data-cli-tool)
Hi @avbentem. Thanks for this. What stac-fastapi backend are you using?
Ok thanks for the clarification. stac-fastapi-pgstac and [stac-fastapi-elasticsearch-opensearch](https://github.com/stac-utils/stac-fastapi-elasticsearch-opensearch) seem to be fine. You may be right - something to look into.
I added a comment about adding something in the readme explaining the option to choose the response model.
@vincentsarago What do you think?
It says here that null is allowed for datetime: https://github.com/radiantearth/stac-spec/blob/v1.0.0-beta.2/item-spec/item-spec.md
I tried this ``` datetime: Union[dt, str] = Field(None, alias="datetime") ``` but then this test fails ``` test_validate_item_reraise_exception ``` because it is allowing an item with no datetime key whatsoever...
Do you think that in ``` "datetime": null ```, the problem is that ``` null ``` should be ``` None ``` for Python?
Hi @thomasstorm Can I see your file if it's not too long? The error may be saying that you have not specified a stac version. It's not recognizing your file...
Hi you have to take this part out ``` {"collections": ``` Your file should start like this: ```{"stac_version": "0.9.0", ```