Open pedro-cf opened 1 month ago
According to this document, both of those fields are required: https://github.com/radiantearth/stac-spec/blob/master/collection-spec/collection-spec.md#collection-fields. In stac-fastapi.types.stac it looks like these fields are not optional but I think the error is coming from stac-pydantic.
According to this document, both of those fields are required: https://github.com/radiantearth/stac-spec/blob/master/collection-spec/collection-spec.md#collection-fields. In stac-fastapi.types.stac it looks like these fields are not optional but I think the error is coming from stac-pydantic.
I can understand the license
field being a new stac spec rule, but the links
field seems weird to me, since the new strategy with stac-fastapi.api
is to not store links
in the database and have the api return the links
dynamically.
I do agree with you. There's a similar issue where someone wants to ingest items without the collection_id field because the stac api should be able to assign this field based on what collection the items are being added to. Even license? If someone doesn't care if their data doesn't have license?
Links are dynamically assigned already so allowing links to not exist seems like a no-brainer
Describe the bug Greetings since the
stac-fastapi.api
update to3.0.0a
it seems that when creating collections two additional restrictions were added:license: "test"
key/value"links": []
key/value (empty at least)To Reproduce Steps to reproduce the behavior:
license
orlinks
Expected behavior Be able to create a collection without specifying these 2 fields.
Additional Context Not sure if this is a
stac-fastapi.core
orstac-fastapi.api
issue...