Skip to content

Commit 15aacea

Browse files
authored
Modify rule for required, such that it doesn't effect required under properties (#49)
1 parent b1f26d4 commit 15aacea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rules/from-draft2/to-draft3/006-unknown-in-previous-draft-required.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"vocabulary": null,
33
"condition": [
4-
{ "operation": "has-key", "path": [], "value": "required" }
4+
{ "operation": "has-key", "path": [], "value": "required" },
5+
{ "operation": "type-is", "path": [ "required" ], "value": [ "array", "object", "number", "integer", "string" ] }
56
],
67
"transform": [
78
{ "operation": "prefix-until-unique", "path": [ "required" ], "value": "x-" }

0 commit comments

Comments
 (0)