radiantearth / stac-spec

SpatioTemporal Asset Catalog specification - making geospatial assets openly searchable and crawlable
https://stacspec.org
Apache License 2.0
772 stars 177 forks source link

Verify the self link is absolute #1241

Closed m-mohr closed 1 month ago

m-mohr commented 1 year ago

Add a rule to the JSON schema that verifies that the self links are absolute.

kbgg commented 1 year ago

Requiring all self links be absolute creates difficulties for portable catalogs. The recommendation here is that for portable catalogs there only needs to be a single absolute self link at the root of the catalog. I'd recommend removing the requirement that all self links be absolute and instead require an absolute link exists at the root of the catalog

m-mohr commented 1 year ago

If you can't provide absolute links, don't provide a self link at all. I don't know what a relative self link really helps with?

kbgg commented 1 year ago

Fair enough, I was under the impression that self links are required but after another quick read through the spec that doesn't seem to be the case

m-mohr commented 1 year ago

Indeed, they are optional, but if you provide them they must be absolute.