[x3d-public] JSON schema validators, Java vs JavaScript

John Carlson yottzumm at gmail.com
Thu Apr 1 22:01:07 PDT 2021


There appears to be a difference between Everit and Ajv when analyzing 
the meta statements/nodes.


Java:

$ grep json-schema javaresults3.txt |grep -vi Originals|grep -v Xvl|grep 
-v development
json-schema 3.1 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/3/CADAssembly: #: 0 subschemas matched instead of 
one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/CAD/CADPartChildTransformationAlternativeB.json
json-schema 3.1 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/3/CADAssembly: #: 0 subschemas matched instead of 
one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/CAD/CADPartChildTransformationAlternativeC.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/2/RigidBodyCollection: #: 0 subschemas matched 
instead of one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BodyGeometry.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/4/RigidBodyCollection: #: 0 subschemas matched 
instead of one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallBounce.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/2/RigidBodyCollection: #: 0 subschemas matched 
instead of one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/DoubleHingeJoint.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/head/component: 2 schema violations found 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/CarDemoMain.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children: 64 schema violations found 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/CarDemoMain.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/2/RigidBodyCollection: #: 0 subschemas matched 
instead of one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/MotorJoint.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/3/RigidBodyCollection: #: 0 subschemas matched 
instead of one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallBounceSimple.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/3/RigidBodyCollection: #: 0 subschemas matched 
instead of one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallJointExample.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/4/RigidBodyCollection: #: 0 subschemas matched 
instead of one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BounceTrimesh.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/2/RigidBodyCollection: #: 0 subschemas matched 
instead of one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/MovingBody.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/2/RigidBodyCollection: #: 0 subschemas matched 
instead of one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/UniversalJointExample.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/2/RigidBodyCollection: #: 0 subschemas matched 
instead of one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/SliderJointExample.json
json-schema 3.2 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/3/RigidBodyCollection: #: 0 subschemas matched 
instead of one 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/SingleHingeJoint.json
json-schema 4.0 Validation error 
org.everit.json.schema.InternalValidationException: 
#/X3D/Scene/-children/1/Shape: #: 0 subschemas matched instead of one 
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/AllAudioGraphNodesTest.json
json-schema 3.0 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 3.0 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 3.0 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 3.0 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 3.0 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 3.0 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 3.0 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 3.0 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




JavaScript:

$ grep "^ file" results3.txt |sort -u|grep -vi Originals
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/development/X3dRetreatProtoExercise.json
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallBounce.json
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallBounceSimple.json
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BallJointExample.json
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BodyGeometry.json
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/BounceTrimesh.json
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/DoubleHingeJoint.json
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/MotorJoint.json
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/MovingBody.json
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/SingleHingeJoint.json
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/SliderJointExample.json
  file: 
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/RigidBodyPhysics/UniversalJointExample.json




More information about the x3d-public mailing list