Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
feat: add schema name and version to the error object, close #24
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Apr 30, 2018
1 parent 2f85115 commit 1c6ff58
Show file tree
Hide file tree
Showing 5 changed files with 520 additions and 445 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ When asserting an object against a schema a custom error is thrown. It is an ins
* `errors` is the list of strings with individual validation errors
* `object` the object being validated
* `example` example object for the schema
* `schemaName` is the title of the schema, like `Person`
* `schemaVersion` the version like `1.0.0` of the schema violated, if known.

## Testing

Expand Down
Loading

0 comments on commit 1c6ff58

Please sign in to comment.