Skip to content
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

improve LicenseUrl build in json creation #292

Open
dthiex opened this issue Jun 16, 2023 · 0 comments
Open

improve LicenseUrl build in json creation #292

dthiex opened this issue Jun 16, 2023 · 0 comments

Comments

@dthiex
Copy link
Collaborator

dthiex commented Jun 16, 2023

Currently we create a LicenseUrl link object no matter weather LicenseUrl is defined in the yaml or not. This leads to an empty LicenseUrl as can be seen here: https://collections.eurodatacube.com/stac/tsmn_water_quality_saturday.json

We should only include this in the json if LicenseUrl is defined. Main difficulty here is to format the json correctly so that the comma before the LicenseUrl link object is placed if it's present and not if it's not.

Needs to be done here: https://github.com/eurodatacube/public-collections/blob/main/_build/stac.hbs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant