From 92b3fb7b10378ef02f7605d4593d729ad0d4147a Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 19 Sep 2018 13:35:12 -0400 Subject: [PATCH] Added tests for v6 and v7 bool types. --- types/json-schema/json-schema-tests.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/json-schema/json-schema-tests.ts b/types/json-schema/json-schema-tests.ts index 66cf7c5af5..8d43385aea 100644 --- a/types/json-schema/json-schema-tests.ts +++ b/types/json-schema/json-schema-tests.ts @@ -149,6 +149,7 @@ import { propertyNames: {}, format: 'date-time' } + const c: JSONSchema7 = false; } /* JSON Schema 7 */ @@ -167,7 +168,7 @@ import { const c: JSONSchema7Type = [1, 2] } -// JSONSchema4 +// JSONSchema7 () => { const a: JSONSchema7 = {} const b: JSONSchema7 = { @@ -228,4 +229,5 @@ import { if: {}, then: {} } + const c: JSONSchema7 = false; }