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

Roy Walmsley roy.walmsley at ntlworld.com
Wed Feb 22 14:46:13 PST 2017


John,

 

I checked that file. Both the XML and the JSON encodings validate against their respective schema with XMLSpy. I can see no problem with the example files of the JSON schema.

 

Roy

 

From: yottzumm at gmail.com [mailto:yottzumm at gmail.com] 
Sent: 22 February 2017 22:26
To: Roy Walmsley <roy.walmsley at ntlworld.com>; X3D Graphics public mailing list <x3d-public at web3d.org>
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/20170222/1c3eee3c/attachment-0001.html>


More information about the x3d-public mailing list