Skip to content

improve LicenseUrl build in json creation #292

@dthiex

Description

@dthiex

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions