<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <strong class="gmail_sendername" dir="auto">John Carlson</strong> <span dir="auto"><<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>></span><br>Date: Thu, Feb 10, 2022 at 12:42 AM<br>Subject: Re: [x3d-public] X3D JSON Schema updated for axis++ defaults<br>To: Brutzman, Donald (Don) (CIV) <<a href="mailto:brutzman@nps.edu">brutzman@nps.edu</a>>, X3D Graphics public mailing list <<a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>><br></div><br><br><div dir="ltr">See attached JSON schema to get #comment next to USE (practically everywhere in the schema). Shortened versions of the schema welcome. I'm not quite sure what to do.<div><br></div><div>This adds about 3660 lines to the schema.</div><div><br></div><div>If you can suggest a better JSON encoding or X3D JSON schema, that would be welcome at this point. Such repetition is not desirable, and collapsing -children into a single subschema definiition would be helpful.</div><div><br></div><div>Here's the JSON we're trying to validate:  </div><ul type="disc" style="margin-bottom:0in;margin-top:0in"><li class="gmail-m_-4659608338844118909MsoListParagraph" style="margin:0in;font-size:11pt;font-family:Calibri,sans-serif"><a href="https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/Trebuchet.json" target="_blank">https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/Trebuchet.json</a> I haven't checked to see if you have a new version or not. I will do that RSN</li></ul></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 10, 2022 at 12:29 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"><div>Please confirm that you want me to accept @USE with sibling -children fields, as shown in recently mentioned Trebuchet.json.</div><div><br></div><div>See below snippet of X3D JSON schema, that I will add back in *many* places. The code to be added is embolden.</div><div><br></div><div>Thanks!</div><div><br></div><div>John</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 5, 2022 at 9:06 AM Brutzman, Donald (Don) (CIV) <<a href="mailto:brutzman@nps.edu" target="_blank">brutzman@nps.edu</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 lang="EN-US">
<div>
<p class="MsoNormal"><br></p>
<p class="MsoNormal">2. Saw a documentation problem: USE nodes can’t indicate anything besides the @USE value (except for containerField value for relevant parent-child relationship in XML encoding). So your following guidance about comments is not portable
outside of JSON.<span style="font-size:10pt;font-family:"Courier New";color:black"><br>
<br>
</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â "RigidBody": {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â "type": "object",<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â "oneOf": [<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â "type": "object",<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â "properties": {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â Â Â "@class": {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â Â Â Â Â "type": "string"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â Â Â },<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â Â Â "@USE": {<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â Â Â Â Â "type": "string"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â },<u></u><u></u></b></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â "-children": {<u></u><u></u></b></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â Â Â "type": "array",<u></u><u></u></b></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â Â Â "minItems": 1,<u></u><u></u></b></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â Â Â "items": {<u></u><u></u></b></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "type": "object",<u></u><u></u></b></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "properties": {<u></u><u></u></b></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "#comment": {<u></u><u></u></b></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "type": "string",<u></u><u></u></b></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "$comment": "#comment statements are the only allowed in -children node when using a USE field"<u></u><u></u></b></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â }<u></u><u></u></b></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â },<u></u><u></u></b></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black"><b>Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â "additionalProperties": false</b><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â Â Â Â Â }<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â Â Â }<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â },<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â "required": [<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â Â Â "@USE"<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â ],<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â Â Â "additionalProperties": false<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black">Â Â Â Â Â Â Â },<u></u><u></u></span></p>
<p class="MsoNormal"><u></u>Â <u></u></p>
<p class="MsoNormal"><br></p><div><div><div>
</div>
<p class="MsoNormal"><u></u>Â <u></u></p>
</div>
</div>
</div>
</div>
_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div></div>
</blockquote></div>
</div></div>