Skip to content

Commit

Permalink
Merge pull request #46 from kchadha/fix-comment-position-validation
Browse files Browse the repository at this point in the history
fix(sb3_definitions): fix comment position validation
  • Loading branch information
kchadha authored Aug 13, 2018
2 parents 660d56e + 5a9d618 commit 0f3a10d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/sb3_definitions.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
{"type": "null"}
]
},
"optionalNumber": {
"oneOf": [
{"type": "number"},
{"type": "null"}
]
},
"boolOrOptBoolString": {
"oneOf": [
{"type": "string",
Expand Down Expand Up @@ -294,8 +300,8 @@
"maxLength": 8000
},
"minimized": {"type": "boolean"},
"x": {"type": "number"},
"y": {"type": "number"},
"x": {"$ref": "#/definitions/optionalNumber"},
"y": {"$ref": "#/definitions/optionalNumber"},
"width": {"type": "number"},
"height": {"type": "number"}
},
Expand Down

0 comments on commit 0f3a10d

Please sign in to comment.