Skip to content

Commit

Permalink
fix: Use sentence case for "Array element"
Browse files Browse the repository at this point in the history
#28

Original pull request:
#116

Ben has edited the changelog only.

Co-authored-by: James McKinney <26463+jpmckinney@users.noreply.github.com>
Co-authored-by: Ben Webb <ben.webb@opendataservices.coop>
  • Loading branch information
jpmckinney and Bjwebb committed Jul 6, 2023
1 parent 62162a1 commit ec4d5ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Fixed

- Fix crash when tmp directory is on different filesystem https://github.com/OpenDataServices/lib-cove/issues/84
- Use sentence case consistently in validation error messages https://github.com/OpenDataServices/lib-cove/issues/28

## Changed

Expand Down
2 changes: 1 addition & 1 deletion libcove/lib/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,7 @@ def get_schema_validation_errors(
header = e.path[-1]
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 "
pre_header = "Array element "
header_extra = "{}/[number]".format(e.path[-2])

null_clause = ""
Expand Down

0 comments on commit ec4d5ee

Please sign in to comment.