<div dir="ltr"><div dir="ltr">Thanks for the 55 downloads of x3dvalidate a few weeks ago. I have been away from X3D JSON a few weeks, and I was trying the new X3D JSON schema based on x3d4 standards for HAnimHumanoid and HAnimMotion, and I found that npx x3dvalidate didn't work, so I deployed a new version, and that didn't work. I tried removing my cache and that didn't work either. So I am puzzled now.<div><br></div><div>Since the old versions don't agree with the standard, I don't know what to suggest for npx. If it fails, and clearing the cache doesn't work. I think you can follow the original instructions in the file, with</div><div><br></div><div>$ npm install -g x3dvalidate@8.6.0</div><div>$ node x3dvalidate file1.json file2.json file3.json ...</div><div><br></div><div>or after the install, use</div><div><br></div><div>$ x3dvalidate file1.json file2.json file3.json ...</div><div><br></div><div>You may need to upgrade to 8.6.0 in your package.json dependencies.</div><div><br></div><div>If someone wants to build out a new X3D JSON schema based on my own work or their own, they are welcome, and I will gladly use the new schema after testing. I have been working on non-schema Java validators, but I'm having troubles checking large files into github.</div><div><br></div><div>Thanks for any issue reports: <a href="https://github.com/coderextreme/x3dvalidate/issues">https://github.com/coderextreme/x3dvalidate/issues</a></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Sep 9, 2023 at 5:49 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">There’s a new way to do validation of X3D JSON! If you have node/node.js installed, you can use the command:<div dir="auto"><br></div><div dir="auto">$ npx x3dvalidate file1.json file2.json file3.json …</div><div dir="auto"><br></div><div dir="auto">I’m guessing, but haven’t confirmed, that .x3dj extensions will work as well, but i got Don’s note that .x3dj is not preferred.</div><div dir="auto"><br></div><div dir="auto">Thanks to Holger for his guidance in developing this feature of x3dvalidate.</div><div dir="auto"><br></div><div dir="auto">X3dvalidate uses the ajv and ajv-formats npm packages.</div><div dir="auto"><br></div><div dir="auto">I don’t believe that any other downloads are necessary. Source code for auditing (ajv* is elsewhere) is available hereem:</div><div dir="auto"><br></div><div dir="auto"><div><a href="https://github.com/coderextreme/x3dvalidate" target="_blank">https://github.com/coderextreme/x3dvalidate</a></div><div dir="auto"><br></div><div dir="auto">If at first it doesn’t work, try clearing your npx cache. I can provide direction on that, if needed. In general, it’s under ~/.npm or AppData</div><div dir="auto"><br></div><div dir="auto">This is similar to the X3DJSONLD validator, but with a more auditable code base.</div><div dir="auto"><br></div><div dir="auto">I would write a Java based validator which doesn’t use JSON schema, but I’ve already done that.</div><div dir="auto"><br></div><div dir="auto">I’m not going to provide a Java web client solution for X3DJSONLD at this time. The only web server code I support is Apache. If someone wants to take x3dvalidate and use curl, wget, etc. to validate X3D JSON files, be my guest! I don’t want someone launching a DOS attack against my server.</div><div dir="auto"><br></div><div dir="auto">The main feature of this is to provide batch validation. But one-offs are acceptable too!</div><div dir="auto"><br></div><div dir="auto">John</div><br></div>
</blockquote></div>