<div style="font-size:inherit"><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem">If you use jsonlint to validate JSON, you may get this error:</code></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><span style="font-size:1rem">echo "{}" | jsonlint -V x3d-4.0-JSONSchema.json -e draft-2020-12</span><br></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem">File: <stdin>
Loading the JSON Schema failed:
Compiling the JSON Schema failed.
strict mode: unknown keyword: "x-orderOf"</code></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem"><br></code></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem">I have just become aware of this.</code></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem"><br></code></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem">X3dvalidate avoids this by passing { strict: false } to the Ajv2020 constructor.</code></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem"><br></code></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem">So your choices are use x3dvalidate, modify the schema, or modify jsonlint.</code></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem"><br></code></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem">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.</code></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem"><br></code></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto">As the x-orderOf is non-functional, I can also remove it.</pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem"><br></code></pre><pre style="white-space:pre-wrap;color:rgb(49,49,49);font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;word-spacing:1px;text-decoration:none;font-family:monospace" dir="auto"><code style="font-family:monospace;font-size:1rem">John</code></pre></div>