Skip to content

Commit

Permalink
add some metadata to the validator processor
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed Apr 15, 2019
1 parent 64143c1 commit a05bc74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foliatools/foliavalidator.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def validate(filename, schema = None,**kwargs):
try:
if kwargs.get('output'):
if not (folia.checkversion(document.version, "2.0.0") < 0 and kwargs.get('keepversion')):
document.provenance.append( folia.Processor.create(name="foliavalidator", version=TOOLVERSION, src="https://github.com/proycon/foliatools") )
document.provenance.append( folia.Processor.create(name="foliavalidator", version=TOOLVERSION, src="https://github.com/proycon/foliatools", metadata={"valid": "yes"}) )
xml = document.xmlstring()
if kwargs.get('output'):
if folia.checkversion(document.version, "2.0.0") < 0 and not kwargs.get('keepversion') and not kwargs.get('autodeclare'):
Expand Down

0 comments on commit a05bc74

Please sign in to comment.