<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>I'm hoping Don can provide the proper stack space requirements
for Everit. That would be good to document somewhere and get into
test scripts. I'm trying 1GB.<br>
</p>
<p>I will work on creating a better way to test JavaScript versus
Java results at sometime time range in the future. What I will
do right now is send the JSON file to the x3dvalidate command-line
validator (see results below everit log). You will find the
x3dschema Ajv validator will only report things that differ
between the hand-generated (now deprecated) and auto-generated
schema. There will likely be a large change in x3dschema to no
longer compare against hand-generated schemas. what I will try
to do is create a good way to deal with updating versions, and
comparing between X3D versions. (4.0 versus 4.X).<br>
</p>
<p><br>
</p>
<p>json-schema 4.0 Validation error
org.everit.json.schema.InternalValidationException:
#/X3D/Scene/-children/2/Viewpoint: #: only 1 subschema matches out
of 2
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
json-schema 4.0 Validation error
org.everit.json.schema.InternalValidationException:
#/X3D/Scene/-children/3/Transform: #: only 1 subschema matches out
of 2
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
json-schema 4.0 Validation error
org.everit.json.schema.InternalValidationException:
#/X3D/Scene/-children/4/Transform: #: only 1 subschema matches out
of 2
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
json-schema 4.0 Validation error
org.everit.json.schema.InternalValidationException:
#/X3D/Scene/-children/5/Transform: #: only 1 subschema matches out
of 2
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
json-schema 4.0 Validation error
org.everit.json.schema.InternalValidationException:
#/X3D/Scene/-children/13/AudioDestination: #: only 1 subschema
matches out of 2
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json</p>
<p>I will check in results into github.com/coderextreme/x3dschema.</p>
<p>Here's the Ajv validator report on the file:</p>
<p>$ node x3dvalidate.js
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json
<br>
Loading schema<br>
Parsing schema<br>
Adding schema<br>
Schema 4.0 added<br>
Schema 4.0 compiled<br>
================================================================================<br>
File:
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
Error reading
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json
<br>
keyword: additionalProperties<br>
dataPath: X3D > Scene > -children > 2 > Viewpoint<br>
value:
{"@bind":true,"@orientation":"|omitted|","@position":"|omitted|","@retainUserOffsets":true}<br>
message: should not have additional properties<br>
params: {"additionalProperty":"@bind"}<br>
file:
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
version: 4.0<br>
<br>
keyword: additionalProperties<br>
dataPath: X3D > Scene > -children > 2 > Viewpoint<br>
value:
{"@bind":true,"@orientation":"|omitted|","@position":"|omitted|","@retainUserOffsets":true}<br>
message: should not have additional properties<br>
params: {"additionalProperty":"@bind"}<br>
file:
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
version: 4.0<br>
<br>
keyword: oneOf<br>
dataPath: X3D > Scene > -children > 2 > Viewpoint<br>
value:
{"@bind":true,"@orientation":"|omitted|","@position":"|omitted|","@retainUserOffsets":true}<br>
message: should match exactly one schema in "oneOf"<br>
params: {"passingSchemas":null}<br>
file:
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
version: 4.0</p>
<p>==========================================</p>
<p>Here's the commands to run x3dvalidate:</p>
<p><br>
</p>
<p>$ git clone <a class="moz-txt-link-freetext" href="https://github.com/coderextreme/x3dvalidate">https://github.com/coderextreme/x3dvalidate</a><br>
$ cd x3dvalidate<br>
$ npm install<br>
$ node x3dvalidate.js flipper.json ... (other JSON files).</p>
<p><br>
</p>
<p>Updates, enhancements to x3dvalidate welcome.</p>
<p><br>
</p>
<p>Note, as far as I can tell, Ajv is MUCH faster than everit, so
you may consider that when validating large numbers of files. It
looks like everit reports more errors than Ajv. Plus, as far as I
can tell, Ajv stack space doesn't need to be configured. Don't
forget to revalidate after fixing validation errors.<br>
</p>
<p><br>
</p>
<p>I'm hoping that I won't have to come out with another report, I
just used penultimate because it's way cooler than final. I will
report on any StackOverflowErrors I get.<br>
</p>
<p>John<br>
</p>
<div class="moz-cite-prefix">On 4/26/21 10:29 PM, John Carlson
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:b48b3fc1-e15a-ea3f-a69c-2ccf4a5b5e39@gmail.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Getting some Validation errors:</p>
<p> grep Validation javaresults.txt <br>
</p>
<p><pre></p>
<p>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<br>
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<br>
json-schema 4.0 Validation error
org.everit.json.schema.InternalValidationException:
#/X3D/Scene/-children/2/Viewpoint: #: only 1 subschema matches
out of 2
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
json-schema 4.0 Validation error
org.everit.json.schema.InternalValidationException:
#/X3D/Scene/-children/3/Transform: #: only 1 subschema matches
out of 2
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
json-schema 4.0 Validation error
org.everit.json.schema.InternalValidationException:
#/X3D/Scene/-children/4/Transform: #: only 1 subschema matches
out of 2
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
json-schema 4.0 Validation error
org.everit.json.schema.InternalValidationException:
#/X3D/Scene/-children/5/Transform: #: only 1 subschema matches
out of 2
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
json-schema 4.0 Validation error
org.everit.json.schema.InternalValidationException:
#/X3D/Scene/-children/13/AudioDestination: #: only 1 subschema
matches out of 2
/c/x3d-code/www.web3d.org/x3d/content/examples/X3dForAdvancedModeling/AudioSpatialSound/Filters.json<br>
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</p>
<p></pre><br>
</p>
<div class="moz-cite-prefix">On 4/26/21 10:25 PM, John Carlson
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1541ca78-43be-7f32-6a7b-b0fb8ccd64ac@gmail.com">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<p>Lots of validations are coming through now, with latest draft
07, latest everit. I don't know if I'll get any errors,
because the everit run takes so long, and there's a
StackOverflowError, but I am getting passing JSON files, so it
looks okay.</p>
<p>Check out:</p>
<p><a class="moz-txt-link-freetext"
href="https://github.com/coderextreme/x3dschema"
moz-do-not-send="true">https://github.com/coderextreme/x3dschema</a></p>
<p>The latest logs have not been checked in yet. TBD.</p>
<p>I don't see anything significant that changed, except I don't
version control everit. I assert that the version I have
seems to work except for StackOverflowErrors.</p>
<p>With the valid reports, I think it's likely we can track down
the StackOverflow errors. Probably we should print out the
file before validating it.</p>
<p>Forks and pull requests welcome!<br>
</p>
<p>John<br>
</p>
<div class="moz-cite-prefix">On 4/26/21 10:14 PM, John Carlson
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:c9c359c6-3dcf-03c9-00b1-ff3034762bb4@gmail.com">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<p>I backed out the change to the draft 07 schema, and put a
printout for when the X3D JSON example passed, and got
confirmation that the files were validated. I did get one
stack overflow, which in my case, might have dropped a lot
of files, since I process them in batches.</p>
<p>Hmm. I don't think I can catch a Stack Overflow Exception?</p>
<p>I will put the change to draft 07 schema back in and retest
with the "valid" log in place.</p>
<p>John<br>
</p>
<div class="moz-cite-prefix">On 4/26/21 9:54 PM, John Carlson
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:324e8bfe-2b60-18e5-4b3c-7ed0703dc8b3@gmail.com">
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<p>Indeed, there was a change!!!! to draft 07 JSON schema!</p>
<p>Here's the diff:</p>
<p>$ git diff -w json*<br>
diff --git a/json-schema-draft-07.json
b/json-schema-draft-07.json<br>
index 5bee90e..fb92c7f 100644<br>
--- a/json-schema-draft-07.json<br>
+++ b/json-schema-draft-07.json<br>
@@ -64,6 +64,10 @@<br>
"type": "boolean",<br>
"default": false<br>
},<br>
+ "writeOnly": {<br>
+ "type": "boolean",<br>
+ "default": false<br>
+ },<br>
"examples": {<br>
"type": "array",<br>
"items": true<br>
</p>
<p>I don't think this will affect X3D JSON schema, but it
may affect everit and Ajv.</p>
<p>Good catch!</p>
<p>Retesting...</p>
<p>John<br>
</p>
<div class="moz-cite-prefix">On 4/26/21 9:32 PM, John
Carlson wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGC3UEkMUuCCr7y20-wNAR3Bs1Zh0N1+w889BaO-XYneYEKs6w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html;
charset=UTF-8">
<div dir="auto">Classpath which contains jars to download
found in validate.sh in x3dschema repository under my
coderextreme account on GitHub.com</div>
<div dir="auto"><br>
</div>
<div dir="auto">John</div>
<div><br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Apr 26, 2021
at 7:32 PM John Carlson <<a
href="mailto:yottzumm@gmail.com"
moz-do-not-send="true">yottzumm@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px
0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div>
<div><a
href="https://github.com/coderextreme/x3dschema/blob/master/validate.sh"
target="_blank" moz-do-not-send="true">https://github.com/coderextreme/x3dschema/blob/master/validate.sh</a></div>
<br>
</div>
<div dir="auto">(Check CLASSPATH above, and location
to download everit if building everit from source.</div>
<div dir="auto"><br>
</div>
<div dir="auto">There are additional jars for
running everit, to verify my classpath, check
everit’s pom.xml files.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Next I will look into everit
releases.</div>
<div dir="auto"><br>
</div>
<div dir="auto">John</div>
<div><br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Mon, Apr
26, 2021 at 7:24 PM John Carlson <<a
href="mailto:yottzumm@gmail.com"
target="_blank" moz-do-not-send="true">yottzumm@gmail.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">
<div><a
href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/schema/x3d-4.0-JSONSchema.json"
target="_blank" moz-do-not-send="true">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/schema/x3d-4.0-JSONSchema.json</a></div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</body>
</html>