[x3d-public] Error in BoxManC.json (attached)
John Carlson
yottzumm at gmail.com
Sun May 10 04:22:03 PDT 2020
There's a JSON Schema validation error in BoxManC for the 3.0 X3D JSON
Schema:
Generation of the JSON file should be reproducible by Don. Both XML and
JSON are attached.
Don, let me know if you want to update your 3.0 schema. Roy's schema
doesn't work with my setup right now.
Possible fixes include removing the shimming Viewpoint object between
-viewpoints and the actual element (similar to what we do with meta).
But yeah, probably the draft-07 schemas need to be updated.
$ !node
node.exe x3dvalidate.js ../X3DJSONLD/src/main/data/BoxManC.json
Loading schema
Parsing schema
Adding schema
Schema 3.0 added
Schema 3.0 compiled
================================================================================
File: ../X3DJSONLD/src/main/data/BoxManC.json
Error reading ../X3DJSONLD/src/main/data/BoxManC.json
keyword: additionalProperties
dataPath: X3D > Scene > -children > 3 > HAnimHumanoid
value:
{"@name":"Humanoid","@DEF":"HUMANOID","@info":"|omitted|","@version":"2.0","-skeleton":"|omitted|","-children":"|omitted|","-skinCoord":"|omitted|","-skin":"|omitted|","-joints":"|omitted|","-sites":"|omitted|","-segments":"|omitted|","-viewpoints":"|omitted|"}
message: should not have additional properties
params: {"additionalProperty":"@name"}
file: ../X3DJSONLD/src/main/data/BoxManC.json
version: 3.0
keyword: additionalProperties
dataPath: X3D > Scene > -children > 3 > HAnimHumanoid > -viewpoints > 0
value: {"Viewpoint":"|omitted|"}
message: should not have additional properties
params: {"additionalProperty":"Viewpoint"}
file: ../X3DJSONLD/src/main/data/BoxManC.json
version: 3.0
keyword: oneOf
dataPath: X3D > Scene > -children > 3 > HAnimHumanoid
value:
{"@name":"Humanoid","@DEF":"HUMANOID","@info":"|omitted|","@version":"2.0","-skeleton":"|omitted|","-children":"|omitted|","-skinCoord":"|omitted|","-skin":"|omitted|","-joints":"|omitted|","-sites":"|omitted|","-segments":"|omitted|","-viewpoints":"|omitted|"}
message: should match exactly one schema in "oneOf"
params: {"passingSchemas":null}
file: ../X3DJSONLD/src/main/data/BoxManC.json
version: 3.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200510/93cd5436/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BoxManC.json
Type: application/json
Size: 102662 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200510/93cd5436/attachment-0001.json>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BoxManC.x3d
Type: model/x3d+xml
Size: 51862 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200510/93cd5436/attachment-0001.x3d>
More information about the x3d-public
mailing list