From 8eb3c3010886da511b25b00989cfd96e95858785 Mon Sep 17 00:00:00 2001 From: Karishma Chadha Date: Thu, 9 Aug 2018 15:17:00 -0400 Subject: [PATCH] fix(sb3_definitions): fix validation error fix a validation error where projects with certain custom procedure blocks were failing to load --- lib/sb3_definitions.json | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/sb3_definitions.json b/lib/sb3_definitions.json index 8f14ac55..ff4548ce 100644 --- a/lib/sb3_definitions.json +++ b/lib/sb3_definitions.json @@ -9,11 +9,12 @@ {"type": "null"} ] }, - "boolOrBoolString": { + "boolOrOptBoolString": { "oneOf": [ {"type": "string", - "enum": ["true", "false"]}, - {"type": "boolean"} + "enum": ["true", "false", "null"]}, + {"type": "boolean"}, + {"type": "null"} ] }, "stringOrNumber": { @@ -275,8 +276,8 @@ "argumentids": { "type": "string" }, - "warp": {"$ref":"#/definitions/boolOrBoolString"}, - "hasnext": {"$ref":"#/definitions/boolOrBoolString"} + "warp": {"$ref":"#/definitions/boolOrOptBoolString"}, + "hasnext": {"$ref":"#/definitions/boolOrOptBoolString"} } } },