[x3d-public] Hand-generated X3D JSON schema validation

John Carlson yottzumm at gmail.com
Fri Apr 2 13:36:14 PDT 2021


$ grep Ajv resultshand.txt |grep -v development|grep -v 
RigidBodyPhysics|grep -v originals
0 Ajv 4.0H Validation failed on 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/X3dHeaderPrototypeSyntaxExamples.json
0 Ajv 4.0H Validation failed on 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Scanning/X3dMeshDesignPattern.json

coderextreme at coderextreme-Kubuntu20:~/x3dschema$ grep "^ file" 
resultshand.txt |grep -v development|grep -v RigidBodyPhysics|grep -v 
originals
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/X3dSpecifications/X3dHeaderPrototypeSyntaxExamples.json
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/Scanning/X3dMeshDesignPattern.json

None of the above results appear in Everit output, which is a problem.  
I have identified IndexedLineSet/-normal as an issue, and have patched 
the hand generated schema.   The other problem is with IMPORT, as 
previously discussed, and is a Mantis issue under the JSON project.

Discussed under this subject, "Re: These files failed my modifications 
of Roy's X3D JSON schema" dated: 4/1/21, 4:36 PM (CDT)

Note, results*txt files only report when only one schema validates 
(either hand or auto generated schema depending on flag in code).

$ grep json-schema javaresultshand.txt |grep -vi originals|grep -v 
Xvl|grep -v development|grep -v Squaw
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/3/CADAssembly/-children/0/CADPart/-children/3/CADFace: 
2 schema violations found 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/CAD/CADPartChildTransformationAlternativeB.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/3/CADAssembly/-children/0/CADPart/-children/4/CADFace: 
2 schema violations found 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/CAD/CADPartChildTransformationAlternativeB.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/3/CADAssembly/-children/0/CADPart/-children/3: 
extraneous key [Transform] is not permitted 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/CAD/CADPartChildTransformationAlternativeC.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/3/CADAssembly/-children/0/CADPart/-children/4: 
extraneous key [Transform] is not permitted 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/CAD/CADPartChildTransformationAlternativeC.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D: required key 
[encoding] not found 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldCommentedOriginalEncoding.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D/@version: #: 
only 0 subschema matches out of 2 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldCommentedOriginalEncoding.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D/Scene: 10 
schema violations found 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldCommentedOriginalEncoding.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D: required key 
[encoding] not found 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldCommentedAlternativeEncoding.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D/@version: #: 
only 0 subschema matches out of 2 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldCommentedAlternativeEncoding.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/4/Group/-children: 4 schema violations found 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/HelloWorldScenes/HelloWorldCommentedAlternativeEncoding.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/1/Shape/-appearance/Appearance: extraneous key 
[-acousticProperties] is not permitted 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/AllAudioGraphNodesTest.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/2: extraneous key [SpatialSound] is not permitted 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/AllAudioGraphNodesTest.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D/head/meta/0: 
required key [@content] not found 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/ModelDetailing/MilitaryCrestsAndSeals/COMDESRON9/COMDESRON9.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D/head/meta/0: 
extraneous key [@key] is not permitted 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/ModelDetailing/MilitaryCrestsAndSeals/COMDESRON9/COMDESRON9.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D/head/meta/0: 
required key [@content] not found 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/ModelDetailing/MilitaryCrestsAndSeals/COMDESRON31/COMDESRON31.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D/head/meta/0: 
extraneous key [@key] is not permitted 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/ModelDetailing/MilitaryCrestsAndSeals/COMDESRON31/COMDESRON31.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D/head/meta/0: 
required key [@content] not found 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/ModelDetailing/MilitaryCrestsAndSeals/COMDESRON31/DESRON31Test.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D/head/meta/0: 
extraneous key [@key] is not permitted 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/ModelDetailing/MilitaryCrestsAndSeals/COMDESRON31/DESRON31Test.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D/head/meta/0: 
required key [@content] not found 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/ModelDetailing/MilitaryCrestsAndSeals/CSG11/CSG11.json
json-schema 4.0H Validation error 
org.everit.json.schema.InternalValidationException: #/X3D/head/meta/0: 
extraneous key [@key] is not permitted 
/c/x3d-code/www.web3d.org/x3d/content/examples/Savage/ModelDetailing/MilitaryCrestsAndSeals/CSG11/CSG11.json




More information about the x3d-public mailing list