Skip to content

Commit

Permalink
Merge pull request #171 from hckrnews/feature/finetune-error-message
Browse files Browse the repository at this point in the history
Remove schema from error value
  • Loading branch information
w3nl authored Mar 31, 2022
2 parents 3b6d1de + 57d7b63 commit ebb987b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hckrnews/objects",
"description": "Create valid JavaScript objects",
"version": "4.0.1",
"version": "4.0.2",
"author": {
"name": "Pieter Wigboldus",
"url": "https://hckr.news/"
Expand Down
3 changes: 0 additions & 3 deletions src/objects.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@ const ObjectGenerator = ({ schema } = {}) =>
field: `${path}.${subField}`,
type: subTypeName,
invalidData,
schema: JSON.stringify(schema),
data: this.original,
},
me: this.constructor,
Expand Down Expand Up @@ -188,7 +187,6 @@ const ObjectGenerator = ({ schema } = {}) =>
field,
type,
invalidData,
schema: JSON.stringify(schema),
data: this.original,
},
me: this.constructor,
Expand All @@ -202,7 +200,6 @@ const ObjectGenerator = ({ schema } = {}) =>
field,
type: type.name,
invalidData,
schema: JSON.stringify(schema),
data: this.original,
},
me: this.constructor,
Expand Down

0 comments on commit ebb987b

Please sign in to comment.