<div dir="ltr">BoxManC.x3d validation errors attached (may be too big).<div><br></div><div>Figured that one out, perhaps.  What's next?</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 10, 2020 at 6:40 AM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Note, this is V3.0 of X3D.  That perhaps is the difference?<div><br></div><div>John</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 10, 2020 at 6:39 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Viewpoints object(s) in X3dToJson.xslt and DOM2JSONSerializer.js<div><br></div><div>Initial changes to the schema do not solve the problem.  I suggest possibly changing the JSON generated.</div><div><br></div><div>What should an array of Viewpoints look like in JSON?</div><div><br></div><div>The standard says that the viewpoints field is an array of Site, [Site] by default, and sequence<Object> abstractly.</div><div><br></div><div>It would appear that I have a list of Viewpoints, not Sites, in the example, BoxManC.x3d?  So the example is incorrect??</div><div><br></div><div>Any clarification would be welcome!</div><div><br></div><div>John</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 10, 2020 at 6:22 AM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">There's a JSON Schema validation error in BoxManC for the 3.0 X3D JSON Schema:<div><br></div><div>Generation of the JSON file should be reproducible by Don.  Both XML and JSON are attached.</div><div><br></div><div>Don, let me know if you want to update your 3.0 schema.  Roy's schema doesn't work with my setup right now.</div><div><br></div><div>Possible fixes include removing the shimming Viewpoint object between -viewpoints and the actual element (similar to what we do with meta).</div><div><br></div><div>But yeah, probably the draft-07 schemas need to be updated.</div><div><br></div><div>$ !node<br>node.exe x3dvalidate.js ../X3DJSONLD/src/main/data/BoxManC.json<br>Loading schema<br>Parsing schema<br>Adding schema<br>Schema 3.0 added<br>Schema 3.0 compiled<br>================================================================================<br>File: ../X3DJSONLD/src/main/data/BoxManC.json<br>Error reading ../X3DJSONLD/src/main/data/BoxManC.json<br> keyword: additionalProperties<br> dataPath: X3D > Scene > -children > 3 > HAnimHumanoid<br> value: {"@name":"Humanoid","@DEF":"HUMANOID","@info":"|omitted|","@version":"2.0","-skeleton":"|omitted|","-children":"|omitted|","-skinCoord":"|omitted|","-skin":"|omitted|","-joints":"|omitted|","-sites":"|omitted|","-segments":"|omitted|","-viewpoints":"|omitted|"}<br> message: should not have additional properties<br> params: {"additionalProperty":"@name"}<br> file: ../X3DJSONLD/src/main/data/BoxManC.json<br> version: 3.0<br><br> keyword: additionalProperties<br> dataPath: X3D > Scene > -children > 3 > HAnimHumanoid > -viewpoints > 0<br> value: {"Viewpoint":"|omitted|"}<br> message: should not have additional properties<br> params: {"additionalProperty":"Viewpoint"}<br> file: ../X3DJSONLD/src/main/data/BoxManC.json<br> version: 3.0<br><br> keyword: oneOf<br> dataPath: X3D > Scene > -children > 3 > HAnimHumanoid<br> value: {"@name":"Humanoid","@DEF":"HUMANOID","@info":"|omitted|","@version":"2.0","-skeleton":"|omitted|","-children":"|omitted|","-skinCoord":"|omitted|","-skin":"|omitted|","-joints":"|omitted|","-sites":"|omitted|","-segments":"|omitted|","-viewpoints":"|omitted|"}<br> message: should match exactly one schema in "oneOf"<br> params: {"passingSchemas":null}<br> file: ../X3DJSONLD/src/main/data/BoxManC.json<br> version: 3.0<br><br></div></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>