Skip to content

[BUG] Best Practice - missing self link #51

@lowlydba

Description

@lowlydba

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions