Skip to content

Commit

Permalink
Merge pull request #92 from kapilkd13/master
Browse files Browse the repository at this point in the history
added a warning message when error is being ignored
  • Loading branch information
mr-c authored Mar 7, 2017

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 2114715 + c00ad4c commit 0b76655
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
@@ -27,6 +27,13 @@ Usage
$ python
>>> import schema_salad

To install from source::

git clone https://github.com/common-workflow-language/schema_salad
cd schema_salad
python setup.py install

Documentation
-------------

3 changes: 2 additions & 1 deletion schema_salad/ref_resolver.py
Original file line number Diff line number Diff line change
@@ -966,7 +966,8 @@ def validate_links(self, document, base_url):
else:
errors.append(sl.makeError("checking item\n%s" % (
validate.indent(unicode(v)))))

else:
_logger.warn( validate.indent(unicode(v)))
if bool(errors):
if len(errors) > 1:
raise validate.ValidationException(

0 comments on commit 0b76655

Please sign in to comment.