From fe185fc0da62a35ca28a48f9bcffc6fd7486a8d4 Mon Sep 17 00:00:00 2001 From: thsparks Date: Fri, 3 May 2024 13:42:31 -0700 Subject: [PATCH] Add a check for the number 0 (which is for checking score set to 0) --- common-docs/teachertool/validator-plans-shared.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/common-docs/teachertool/validator-plans-shared.json b/common-docs/teachertool/validator-plans-shared.json index ecfb58877648..21f97c9f41e0 100644 --- a/common-docs/teachertool/validator-plans-shared.json +++ b/common-docs/teachertool/validator-plans-shared.json @@ -301,6 +301,19 @@ "count": 0 } ] + }, + { + ".desc": "The zero number block is present.", + "name": "number_zero", + "threshold": 1, + "checks": [ + { + "validator": "blockFieldValueExists", + "fieldType": "NUM", + "fieldValue": 0, + "blockType": "math_number" + } + ] } ] }