Skip to content

Commit 7ac10c2

Browse files
committed
fix conformsTo validation, logic was inverted when changing from lambda
1 parent 677f1aa commit 7ac10c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/stac_api_validator/validations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,9 @@ def validate_features(
503503

504504
try:
505505
conformance_json = r_conformance.json()
506-
if set(root_body.get("conformsTo", [])) == set(
507-
conformance_json["conformsTo"]
506+
if not (
507+
set(root_body.get("conformsTo", []))
508+
== set(conformance_json["conformsTo"])
508509
):
509510
warnings.append(
510511
"Landing Page conforms to and conformance conformsTo must be the same",

0 commit comments

Comments
 (0)