Voting icon indicating copy to clipboard operation
Voting copied to clipboard

xsd:date and json format date incompatabilities

Open JDziurlaj opened this issue 6 months ago • 0 comments

Organization Name: The Turnout

Organization Type: 2

Document: All models using xsd:date

Comment (Include rationale for comment): xsd:date supports an optional time zone offset, while JSON Schema's date format does not include this feature. For example, 2024-06-21Z and 2024-06-21+12:35 are valid according XSD Spec, but not according to JSON Schema draft-07, section 7.3.1 which references the full-date production of RFC3339.

Suggested Change: xsd:date lexical space is canonical, JSON Schema must match


Organization Type: 1 = Federal, 2 = Industry, 3 = Academia, 4 = Self, 5 = Other

JDziurlaj avatar Aug 01 '24 12:08 JDziurlaj