Skip to content

Commit

Permalink
Validator does not check annotationProperty bindings #82
Browse files Browse the repository at this point in the history
  • Loading branch information
hkir-dev committed Feb 25, 2022
1 parent 2371372 commit c7aee9e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/dosdp/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,10 @@ def test_annotation_properties(pattern):
expr = parse('annotations.[*].annotationProperty')
used_annotations = [match for match in expr.find(pattern)]

print(declared_annotations)
stat = True
if used_annotations:
for annotation_prop in used_annotations:
val = annotation_prop.value
print(val)
if val not in declared_annotations:
warnings.warn("Annotation property '%s' didn't declared before use." % val)
stat = False
Expand Down

0 comments on commit c7aee9e

Please sign in to comment.