@@ -531,10 +531,6 @@ def _has_valid_extensions(self, extensions, i):
531531 content_retrieval_count = 0
532532
533533 for extension in extensions :
534- # if extension.url == CONTENT_STABILITY_EXTENSION_URL:
535- # content_stability_count += 1
536- # elif extension.url == CONTENT_RETRIEVAL_EXTENSION_URL:
537- # content_retrieval_count += 1
538534 if "ContentStability" in str (extension ):
539535 content_stability_count += 1
540536 elif "RetrievalMechanism" in str (extension ):
@@ -559,11 +555,9 @@ def _has_valid_extensions(self, extensions, i):
559555 return False
560556
561557 for j , extension in enumerate (extensions ):
562- # if extension.url == CONTENT_STABILITY_EXTENSION_URL:
563558 if "ContentStability" in str (extension ):
564559 if not self ._validate_content_stability_extension (extension , i , j ):
565560 return False
566- # elif extension.url == CONTENT_RETRIEVAL_EXTENSION_URL:
567561 elif "RetrievalMechanism" in str (extension ):
568562 if not self ._validate_retrieval_mechanism_extension (extension , i , j ):
569563 return False
@@ -574,8 +568,6 @@ def _validate_content_stability_extension(self, extension, i, j):
574568 try :
575569 ContentStabilityExtension .model_validate (extension .model_dump ())
576570 except ValidationError as exc :
577- # for error in exc.errors():
578- # error["loc"] = ("content", i, "extension", j) + error["loc"]
579571 raise ParseError .from_validation_error (
580572 exc ,
581573 details = SpineErrorConcept .from_code ("BAD_REQUEST" ),
0 commit comments