From 28b236d390ef7a837048a7c602ca8e24c9d7f941 Mon Sep 17 00:00:00 2001 From: Jason Desrosiers Date: Thu, 25 Mar 2021 14:44:46 -0700 Subject: [PATCH] Improve wording for the type keyword in the spec --- jsonschema-validation.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/jsonschema-validation.xml b/jsonschema-validation.xml index b8d68d69..ef277947 100644 --- a/jsonschema-validation.xml +++ b/jsonschema-validation.xml @@ -225,8 +225,11 @@ or "integer" which matches any number with a zero fractional part. - An instance validates if and only if the instance is in any of the sets listed - for this keyword. + If the value of "type" is a string, then an instance validates successfully if + its type matches the type represented by the value of the string. + + If the value of "type" is an array, then an instance validates successfully if + its type matches any of the types indicated by the strings in the array.