[X3D-Ecosystem] Using prantlf/jsonlint with “X3D” JSON schema

John Carlson yottzumm at gmail.com
Sun Jan 4 06:38:41 PST 2026


If you use jsonlint to validate JSON, you may get this error:

echo "{}" | jsonlint -V x3d-4.0-JSONSchema.json -e draft-2020-12

File: <stdin>
Loading the JSON Schema failed:
Compiling the JSON Schema failed.
strict mode: unknown keyword: "x-orderOf"


I have just become aware of this.


X3dvalidate avoids this by passing { strict: false } to the Ajv2020 constructor.


So your choices are use x3dvalidate, modify the schema, or modify jsonlint.


If someone wants me to do a pull request for jsonlint, I can look into
it, but I feel the ajv-formats2019 will need to be added as well.


As the x-orderOf is non-functional, I can also remove it.


John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-ecosystem_web3d.org/attachments/20260104/c48ac177/attachment.html>


More information about the X3D-Ecosystem mailing list