jesse
jesse copied to clipboard
should "default" values be added to result JSON? should "default" values be ignored by "required" ?
SUBJ?
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