json-schema-spec icon indicating copy to clipboard operation
json-schema-spec copied to clipboard

Enum : Clarification

Open LasneF opened this issue 1 year ago • 2 comments

given the illustration there

https://json-schema.org/understanding-json-schema/reference/enum

it would be good to add a precision that the enum validation, for string, is case sensitive , and so introducing in the sample list "RED" that would fail the validation

This would also be nice to mentionned the precision here https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-validation-00#rfc.section.6.1.2

may be as well as a general rules for the nice understanding json schema documentation , propose for each element a link to the core json rfc specification this would help for traceability and digging into the deatails

LasneF avatar Dec 26 '23 11:12 LasneF

@awwright is this issue under work??

vr-varad avatar Feb 27 '24 13:02 vr-varad

i would like to work on it

vr-varad avatar Feb 27 '24 13:02 vr-varad

I believe this is sufficiently covered by Core Section 4.2.2:

both are strings, and are the same codepoint-for-codepoint

gregsdennis avatar Jun 18 '24 21:06 gregsdennis