Skip to content

Commit d493c6b

Browse files
ahill00gadomski
andauthored
correct log messages for core validation (#389)
Co-authored-by: Pete Gadomski <[email protected]>
1 parent bf6d985 commit d493c6b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stac_api_validator/validations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -746,13 +746,13 @@ def validate_core(
746746
errors += "/ : Link[rel=root] must exist"
747747
else:
748748
if not is_json_type(root.get("type")):
749-
errors += f"/ : Link[rel=root] type is not application/geo+json, instead {root.get('type')}"
749+
errors += f"/ : Link[rel=root] type is not application/json, instead {root.get('type')}"
750750

751751
if not (_self := link_by_rel(links, "self")):
752752
warnings += "/ : Link[rel=self] must exist"
753753
else:
754754
if not is_json_type(_self.get("type")):
755-
errors += f"/ : Link[rel=self] type is not application/geo+json, instead {_self.get('type')}"
755+
errors += f"/ : Link[rel=self] type is not application/json, instead {_self.get('type')}"
756756

757757
if not (service_desc := link_by_rel(links, "service-desc")):
758758
errors += "/ : Link[rel=service-desc] must exist"

0 commit comments

Comments
 (0)