Skip to content

Commit

Permalink
feat(core): custom coercion keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
wdavidw committed Jan 4, 2024
1 parent 2da16ad commit 132f74b
Show file tree
Hide file tree
Showing 80 changed files with 870 additions and 555 deletions.
3 changes: 2 additions & 1 deletion packages/core/lib/actions/assert/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"type": "object",
"properties": {
"not": {
"type": "boolean",
"type": ["boolean", "number", "string"],
"coercion": true,
"default": false,
"description": "Negates the validation."
},
Expand Down
6 changes: 4 additions & 2 deletions packages/core/lib/actions/execute/assert/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"type": "object",
"properties": {
"code": {
"type": "array",
"type": ["array", "integer"],
"coercion": true,
"items": {
"type": "integer"
},
Expand All @@ -12,7 +13,8 @@
"content": {
"oneOf": [
{
"type": "string"
"type": ["string", "number"],
"coercion": true
},
{
"instanceof": "Buffer"
Expand Down
Loading

0 comments on commit 132f74b

Please sign in to comment.