[x3d-public] New way to use my x3dvalidate tool (batch mode)

John Carlson yottzumm at gmail.com
Sat Sep 9 15:49:35 PDT 2023


There’s a new way to do validation of X3D JSON!  If you have node/node.js
installed, you can use the command:

$ npx x3dvalidate file1.json file2.json file3.json …

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.

Thanks to Holger for his guidance in developing this feature of x3dvalidate.

X3dvalidate uses the ajv and ajv-formats npm packages.

I don’t believe that any other downloads are necessary.  Source code for
auditing (ajv* is elsewhere) is available hereem:

https://github.com/coderextreme/x3dvalidate

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

This is similar to the X3DJSONLD validator, but with a more auditable code
base.

I would write a Java based validator which doesn’t use JSON schema, but
I’ve already done that.

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.

The main feature of this is to provide batch validation.  But one-offs are
acceptable too!

John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230909/dc08d67a/attachment.html>


More information about the x3d-public mailing list