-
Notifications
You must be signed in to change notification settings - Fork 27
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
How to programmatically handle SPDX licenses? #223
Comments
In stac4s we fail decoding if the license is neither a valid SPDX id or the string "proprietary" -- https://github.com/azavea/stac4s/blob/master/modules/core/src/main/scala/com/azavea/stac4s/StacLicense.scala#L39-L49 via |
The JSON validation includes light validation of the license field. I think |
I can see pushing it into
That's knowable at the time that you construct the collection. I get the goal to minimize dependencies, and the largely unpinned |
We expect to be given STAC files by users and will likely not have control on how they are generated. |
Since this ticket was opened, our non-official policy seems to have solidified around pushing all non-jsonschema validation up to stac-validator, so I'm going to transfer this issue to stac-validator. If we do want to pull more advanced validation down to a PySTAC validator, that would be fine, but that non-trivial amount of future work should be tracked in its own ticket. |
Having a typo in the license info would be a bummer. What would be the best way to validate licenses?
Would https://github.com/spdx/tools be a good idea?
The text was updated successfully, but these errors were encountered: