Voting icon indicating copy to clipboard operation
Voting copied to clipboard

JSON mapping of ID, IDREF and IDREFS types incomplete

Open JDziurlaj opened this issue 10 months ago • 0 comments

Organization Name: The Turnout

Organization Type: 1 (CTR)

Comment (Include rationale for comment): JSON Schemas map xsd:ID, xsd:IDREF and xsd:IDREFS typed properties to the plain JSON Schema String. However, all are derived from xs:NCName which has the lexical space of [\i-[:]][\c-[:]]*. IDREFS has more restrictions besides. See XML Schema Part 2: Datatypes Second Edition sections 3.3.8, 3.3.9, 3.3.10.

Suggested Change:

Add pattern constraint of [\i-[:]][\c-[:]]* for JSON equivalents of xsd:ID, xsd:IDREF and xsd:IDREFS.


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

JDziurlaj avatar Apr 05 '24 17:04 JDziurlaj