Skip to content

Commit 688a7a4

Browse files
committed
Fix validate_json() (#6666)
1 parent 2c17b3d commit 688a7a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/humancellatlas/data/metadata/helpers/schema_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def validate_json(self, file_json: JSON, file_name: str):
3737
schema_url = file_json['describedBy']
3838
raise RequirementError('Failed to parse schema JSON',
3939
file_name, schema_url) from e
40-
self.validator.evolve(schema=schema)
40+
self.validator = self.validator.evolve(schema=schema)
4141
try:
4242
self.validator.validate(file_json)
4343
except ValidationError as e:

0 commit comments

Comments
 (0)