-
Notifications
You must be signed in to change notification settings - Fork 25
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
Cannot use custom fields in Items #93
Comments
thanks a lot @jonhealy1 for pointing me to this! I think it is sensible that there is no explicit "render" field, as it would be impossible to support all possible additional fields - whether coming from an extension or not. |
Hi I erased my comment because I was second-guessing myself but I was thinking that the issue arises here |
@giorgiobasile Hi. Is your field being saved in Postgres after you add an item? I'm wondering if the field makes it to the database or if stac-fastapi is preventing it from even getting there? The field could be disappearing before it gets to the database or afterwards when the api returns a stac-fastapi type |
Good point, I can confirm that the item in the DB doesn't have the |
Maybe we should move this issue over to the stac-fastapi parent repository as I think it would be an issue in other backends like stac-fastapi-elasticsearch as well? |
Yes, I think all backends would be affected. Opened stac-utils/stac-fastapi#646, thanks again for helping out! |
Hi, I'm trying to upload items adhering with STAC Rendering extension using the
POST /collection/{collection_id}/items
API.The extension mandates the specification of a
renders
object for each Item as a custom key - not as a property - with information about the item rendering. While pystac is able to validate it and produce a well-formed JSON, the API seems to ignore the additionalrenders
object.The body I'm sending looks like:
I get back 200 OK, and the same JSON but without
renders
.I then tried adding other custom keys, unrelated to any extension - i.e.
{'test': 'test'}
but still got the same behavior. This looks to me like a bug, as the readme says:Are you able to reproduce it? Maybe there are other reasons why the endpoint behaves this way? Also, not sure whether this is actually regulated by downstream projects like
stac-fastapi
andpgstac
.Thanks in advance for any help!
The text was updated successfully, but these errors were encountered: