Skip to content

How to modify Metadata model without copying all the code #68

Answered by vincentsarago
robintw asked this question in Q&A
Discussion options

You must be logged in to vote

👋
Metadata allows extra(https://github.com/stac-utils/titiler-pgstac/blob/master/titiler/pgstac/model.py#L103) attribute so you could in theory just add another property in the Metadata like assets_properties: Optional[Dict[str, Any]] when you register your Search request. The only downside is that it won't show up in the OpenAPI schema

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vincentsarago
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #67 on June 23, 2022 12:03.