jesse icon indicating copy to clipboard operation
jesse copied to clipboard

should "default" values be added to result JSON? should "default" values be ignored by "required" ?

Open abogosyan opened this issue 7 years ago • 1 comments

SUBJ?

abogosyan avatar Sep 05 '18 09:09 abogosyan

q1: v4 draft doesn't mention it https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-6.2 currently we do not alter the input JSON in any way and doing so has implications on performance afaics. but it is a potential improvement

q2: https://tools.ietf.org/html/draft-fge-json-schema-validation-00#section-5.4.3 as far as my interpretation of the v4 draft is that a field is required, no matter if it has a default spec

andreineculau avatar Oct 08 '18 18:10 andreineculau