Lint: Catalog/collection objects should include a self link
Description
One or more catalog or collection objects are missing a self link. The STAC spec strongly recommends a self link on every object so clients can resolve the canonical URL without relying on context from a parent.
Lint message
Best practice: A link to 'self' in links is strongly recommended
Affected objects
Catalog and/or collection JSON files that omit a { "rel": "self", "href": "..." } entry in their links array.
Recommended fix
Add a self link pointing to the object's canonical (absolute) URL:
{
"rel": "self",
"href": "https://example.com/stac/catalog.json",
"type": "application/json"
}
Lint: Catalog/collection objects should include a
selflinkDescription
One or more catalog or collection objects are missing a
selflink. The STAC spec strongly recommends aselflink on every object so clients can resolve the canonical URL without relying on context from a parent.Lint message
Affected objects
Catalog and/or collection JSON files that omit a
{ "rel": "self", "href": "..." }entry in theirlinksarray.Recommended fix
Add a
selflink pointing to the object's canonical (absolute) URL:{ "rel": "self", "href": "https://example.com/stac/catalog.json", "type": "application/json" }