[x3d-public] X3dToJson.xslt -- X3D repository translated remaining JSON parse errors. 3.3 JSON schema file failures. SCRIPTS

yottzumm at gmail.com yottzumm at gmail.com
Mon May 1 23:37:46 PDT 2017


$ grep File jsonerrors.txt |grep -v originals|grep -v Test|grep -v LatticeXvl|grep -v save|grep -v Unquoted | awk '{ print $2; }'
C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/development/CameraPrototypes.json
C:/x3d-code/www.web3d.org/x3d/content/examples/Basic/DistributedInteractiveSimulation/BaseballBackspin.json
C:/x3d-code/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TextFont.json
C:/x3d-code/www.web3d.org/x3d/content/examples/Vrml2Sourcebook/Siggraph98Course/TextSize.json
C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/SanCarlosCathedral/development/ModelSanCarlosChurchFeb-3-2012.json

Please run the conversions on the .x3d files and run through a JSON parser (jsonlint?) and see!

$ egrep '^ file|^ version' jsonerrors.txt | sh combine.sh |grep "3\.3"|grep -v originals| awk '{ print $2; }'

The file below does not pass JSON schema, v 3.3.  If it is another version, please label it as so.

keyword: enum
 dataPath: .X3D.Scene['-children'][5].Switch['-children'][5].Group['-children'][3].Switch['-children'][0].ProtoInstance.fieldValue[1]['-children'][1].Transform['-children'][8].Transform['-children'][1].Transform['-children'][2].Transform['-children'][0].Shape['-geometry'].Text['-fontStyle'].FontStyle['@justify'][0]
 message: should be equal to one of the allowed values
 params: {"allowedValues":["BEGIN","END","FIRST","MIDDLE",""]}
 file: C:/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/SanCarlosCathedral/SanCarlosCathedralWorkingVersion/SanCarlosCathedral.json
 version: 3.3

Here is the offending field I think.  Is LEFT legal?  Should we change the schema?

"@justify":["LEFT","MIDDLE"],

<FontStyle justify='"LEFT" "MIDDLE"' size='0.3'/>

We have many files that are not version 3.3, that have errors against the 3.3 schema.  I am not reporting those.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170502/515d4741/attachment.html>


More information about the x3d-public mailing list