Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
stolarczyk committed Apr 21, 2020
1 parent 999e61e commit 2cd4a13
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/changelog.md
Expand Up @@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- `boolean`
- `numeric`
- `eido inspect` CLI command
- schema importing functionality (via top level `imports` key)

### Changed
- previous CLI `eido` functionality moved to `eido validate`
Expand Down
5 changes: 3 additions & 2 deletions eido/eido.py
Expand Up @@ -127,7 +127,8 @@ def read_schema(schema):
for sch in s["imports"]:
schema_list.extend(read_schema(sch))
else:
raise TypeError("'imports' section has to be a list")
raise TypeError("In schema the 'imports' section has "
"to be a list")
schema_list.append(s)
return schema_list
elif isinstance(schema, dict):
Expand All @@ -150,7 +151,7 @@ def _validate_object(object, schema, exclude_case=False):
jsonschema.validate(object, schema)
except jsonschema.exceptions.ValidationError as e:
if not exclude_case:
raise e
raise
raise jsonschema.exceptions.ValidationError(e.message)


Expand Down

0 comments on commit 2cd4a13

Please sign in to comment.