Closed dbooth-boston closed 11 months ago
if (nestScalar.type === "NodeConstraint") {
typedValue = {
"@type": nestScalar.datatype.replace(/^http:\/\/www\.w3\.org\/2001\/XMLSchema#/, "xsd:"),
"@value": jsonValue,
};
} …
Excellent. I think this change is now ready for me to document.
Done in R5
JSON numbers as literals are essentially a union of xsd:int, xsd:decimal and xsd:double.
Should we make the preprocessor do a runtime check of each JSON number, to emit it as one of those three types, rather than defaulting to emitting them all as xsd:double?