[x3d-public] Well, @rotation errors (normalization) all originals; pajekOriginals; getting serious about X3D JSON Schema in draft-07
John Carlson
yottzumm at gmail.com
Sat Apr 3 22:27:54 PDT 2021
Rotation normalization removed from auto-generated schemas (not from
hand-generation schema, version 4.0H at this point). Roy's @rotation
subschema will be saved in the 6.0 schema (X3D version 3.3) and maybe
others, if we choose to remove rotation normalization validation (dang,
three ions in a row) in the hand-generated schema.
Here's the results below, from validateone.sh.
~/x3dschema$ bash validateone.sh
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/development/TestRotationsNormalization.json
0 Ajv 4.0H Validation failed on
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/development/TestRotationsNormalization.json
keyword: maximum
dataPath: X3D > Scene > -children > 2 > Group > -children > 1 >
Transform > @rotation > 0
value: 2
message: should be <= 1
params: {"comparison":"<=","limit":1,"exclusive":false}
file:
/c/x3d-code/www.web3d.org/x3d/content/examples/Basic/development/TestRotationsNormalization.json
version: 4.0H
Note that Everit does not complain at all! This is a problem for the
hand-generated schema! Here is the Everit app code:
https://github.com/coderextreme/x3dschema/blob/master/ObjectTestHand.java
JSON attached for your own testing.
These files should pass auto-generated schemas now:
/c/x3d-code/www.web3d.org/x3d/content/examples$
./Savage/Tools/Visualization/pajekOriginals/2010-02-12newman.json
./Savage/Tools/Visualization/pajekOriginals/2010-01-15newman.json
./Savage/Tools/Visualization/pajekOriginals/excerptexamples.json
Probabaly the pajek originals will start showing up with Ajv, since the
auto-generated schema will pass the JSON and the hand-generated schema
will fail the JSON.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TestRotationsNormalization.json
Type: application/json
Size: 5847 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20210404/b0dbc483/attachment-0001.json>
More information about the x3d-public
mailing list