Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't error when looking up a path on a empty schema #37

Merged
merged 2 commits into from
Nov 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.7.4] - 2019-10-31

### Fixed

- Needed dependencies were removed.
Put back Python Dependencies until we can properly review which ones can be removed and which cant.
https://github.com/open-contracting/lib-cove-ocds/issues/31
- Don't error when looking up a path on a empty schema (e.g. due to broken refs)

## [0.7.3] - 2019-09-23

Expand Down
2 changes: 2 additions & 0 deletions libcoveocds/lib/common_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ def _lookup_schema(schema, path, ref_info=None):
return _lookup_schema(schema['properties'][path_item], child_path, ref_info)
else:
return None, None
else:
return None, None


def lookup_schema(schema, path):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='libcoveocds',
version='0.7.3',
version='0.7.4',
author='Open Data Services',
author_email='data@open-contracting.org',
url='https://github.com/open-contracting/lib-cove-ocds',
Expand Down