Skip to content

Commit 3ea9588

Browse files
committed
fix the validator
1 parent 668e7b8 commit 3ea9588

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stac/stac-generator/test/validator.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ def validate_item(item: pystac.item.Item):
2020
# validate Data Source
2121
assert "dataSource" in properties.keys(), "No dataSource in the stac item"
2222
#TODO: remove the fixer:
23-
metadata_standard = properties.pop("metada_standards")
24-
if metadata_standard is not None:
23+
24+
if "metada_standards" in properties.keys():
25+
metadata_standard = properties.pop("metada_standards")
2526
properties["metadata_standards"] = metadata_standard
2627

2728
assert isinstance(properties["dataSource"], str), "dataSource must be a string"

0 commit comments

Comments
 (0)