[x3d-public] Some schema validators balk on NavigationInfo @type

yottzumm at gmail.com yottzumm at gmail.com
Thu Feb 23 04:03:39 PST 2017


Okay, all the parseable 3.3 json documents in the x3d resources json examples are valid X3D JSON documents with the everit 1.5.0 schema validator (previously was validated at 1.2.0) and the new 3.3 JSON schema.  There are still many outstanding json documents with 3.0, 3.1, and 3.2 versions that need either a better schema (I have some partial ones) or they need to be fixed (a different stylesheet?).  Is the current JSON 3.3 schema complete?  Can we move onto other versions yet?  I guess we need more negative cases, if no invalid ones are reported?

The JavaScript validator script seems to be hanging.  I’m trying to get a handle on what’s causing it to hang.

This script hangs with Node.js (any I tried), Windows 10, and Cygwin and git bash.

yes | xargs node fillbuffer.js | tee xxx

where fillbuffer.js contains:

console.log(0);

And equivalent command based on sh and echo succeed.  So I think it’s node.js

I think this may impact many of my scripts.  I may search for another solution (power shell, windows Ubuntu, give up on windows entirely as a sham of an OS).  Now especially since I can’t copy from vim in a git bash window.  And I upgraded to solve the above problem.  Sigh.  Microsoft sucks.  IEHO.

John

Sent from Mail for Windows 10

From: yottzumm at gmail.com
Sent: Wednesday, February 22, 2017 5:25 PM
To: Roy Walmsley; X3D Graphics public mailing list
Subject: Some schema validators balk on NavigationInfo @type

I’ve been working with the new JSON schema.  The jjv validator does not handle a NavigatorInfo @type field of “NONE”.    However, the schema appears to be the same as in the old schema.  I think there must be a new version of jjv that might be failing.  I will try to file a bug report.

Here is the jjv bug.  I may have fixed this before, I don’t know.  Perhaps I can get the code from my mac.   Note that jjv is no longer mentioned on the json-schema.org site, and I will remove it from my code.  I will try to replace with others as they become more mature (version 5 etc).  Ajv seems to be reportedly the most advanced.

jjv 3.3 Validation failed on ../X3DJSONLD/www.web3d.org/x3d/content/examples/Basic/Followers/3rdPersonViewFollower.json
jjv 3.3 Validation errors:
{"validation":{"X3D":{"schema":{"Scene":{"schema":{"-children":{"schema":{"0":{"schema":{"NavigationInfo":{"schema":{"@type":{"schema":{"1":{"type":"string"}}}}}}}}}}}}}}}
Here is the schema:


  "NavigationInfo": {
                        "type": "object",
                        "properties": {
                                "@type": {
                                        "type": "array",
                                        "minItems": 1,
                                        "items": [
                                                {
                                                        "type": "string",
                                                        "default": "EXAMINE"
                                                },
                                                {
                                                        "type": "string",
                                                        "default": "ANY"
                                                }
                                        ],
                                        "additionalItems": {
                                                "type": "string"
                                        }
                                },


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170223/08acc153/attachment.html>


More information about the x3d-public mailing list