-
Notifications
You must be signed in to change notification settings - Fork 122
Docs on adding extensions is misleading or incomplete #602
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
Comments
Thank for raising this @alexgleith. The behavior of raising an exception if the Item does not already contain the schema URI is intended (see this PR comment in Those docs assumed that the Item already has the EO extension schema URI in its |
Is there a good reason why that doesn't default to true? |
stac-utils/stactools#113 (comment) has some discussion about why it's not automatic, but basically we wanted to force folks to be explicit about adding any new extension schema urls so we didn't, e.g., mutate the object in question (by adding an extension schema url) when a person was treating the object as "read-only". |
Hmm, I can see the logic here for when dealing with an existing item. I reckon the docs should cover it better still. Maybe I need to read them again to see if I missed it somewhere! |
@alexgleith I opened #701 to try to clarify this better in the Concepts docs. Let me know if you think that covers it. |
Closed via #701 |
The Extensions docs say that to add an extension you do:
But in practice you need to do:
Is this intended, and if yes, can we tweak the docs please?
The text was updated successfully, but these errors were encountered: