Skip to content

Commit

Permalink
Merge pull request #51 from OpenDataServices/cove-1225-fix-error-grou…
Browse files Browse the repository at this point in the history
…ping

validation: fix grouping of validation errors
  • Loading branch information
Bjwebb authored Mar 18, 2020
2 parents 12b2ca0 + 38a12ec commit 0bc725b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 93 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

- Fix grouping of validation errors https://github.com/OpenDataServices/cove/issues/1225

## [0.15.0] - 2020-02-24

- Accept .ods format
Expand Down
2 changes: 1 addition & 1 deletion libcove/lib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,7 @@ def get_schema_validation_errors(
if isinstance(e.path[-1], int) and len(e.path) >= 2:
# We're dealing with elements in an array of items at this point
pre_header = "Array Element "
header_extra = "{}/{}".format(e.path[-2], e.path[-1])
header_extra = "{}/[number]".format(e.path[-2])

null_clause = ""
validator_type = e.validator
Expand Down
Loading

0 comments on commit 0bc725b

Please sign in to comment.