Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorthu committed Jun 22, 2018
1 parent 416bfa4 commit e421ca8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -4,6 +4,6 @@ python:
- "3.5"
- "3.6"
install:
- pip install pylint requests
- pip install pylint requests PyYAML
script:
- pylint openapi
2 changes: 1 addition & 1 deletion openapi/__main__.py
Expand Up @@ -17,7 +17,7 @@ def main():
if errors:
# print errors
for e in errors:
print('{}: {}'.format('.'.join(e.path), e.message[:100]))
print('{}: {}'.format('.'.join(e.path), e.message[:300]))
print()
print("{} errors".format(len(errors)))
else:
Expand Down
2 changes: 1 addition & 1 deletion openapi/object_base.py
Expand Up @@ -145,7 +145,7 @@ def _get(self, field, object_types, is_list=False, is_map=False):
raise SpecError('Expected {}.{} to be a Map of string: [{}], got {}'.format(
self.get_path, field, ','.join([str(c) for c in object_types]),
type(ret)),
path=seld.path,
path=self.path,
element=self)
ret = Map(self.path+[field], ret, object_types, self._root)
else:
Expand Down

0 comments on commit e421ca8

Please sign in to comment.