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

John Carlson yottzumm at gmail.com
Fri Sep 22 11:27:55 PDT 2023


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.

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

$ npm install -g x3dvalidate at 8.6.0
$ node x3dvalidate file1.json file2.json file3.json ...

or after the install, use

$ x3dvalidate file1.json file2.json file3.json ...

You may need to upgrade to 8.6.0 in your package.json dependencies.

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.

Thanks for any issue reports:
https://github.com/coderextreme/x3dvalidate/issues







On Sat, Sep 9, 2023 at 5:49 PM John Carlson <yottzumm at gmail.com> wrote:

> 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/20230922/fd8b797c/attachment-0001.html>


More information about the x3d-public mailing list