<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Turns out there’s a bug in my program.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:yottzumm@gmail.com">John Carlson</a><br><b>Sent: </b>Saturday, July 2, 2016 6:38 AM<br><b>To: </b><a href="mailto:brutzman@nps.edu">Don Brutzman</a>; <a href="mailto:roy.walmsley@ntlworld.com">Roy Walmsley</a><br><b>Cc: </b><a href="mailto:x3d-public@web3d.org">X3D Graphics public mailing list</a><br><b>Subject: </b>RE: json schema validation problem: "-children" comments inside"head"element</p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><p class=MsoNormal>I believe I have another place where #comment should appear, but it’s not allowed.  This may be a more general problem that will be solved when the schema is generated from the object model (it’s too hard to put all the #comments in by hand, I think, but I could be wrong).  Meanwhile, if you need a file to pass, I suggest hand modifying the schema.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From: </b><a href="mailto:brutzman@nps.edu">Don Brutzman</a><br><b>Sent: </b>Saturday, July 2, 2016 2:04 AM<br><b>To: </b><a href="mailto:roy.walmsley@ntlworld.com">Roy Walmsley</a><br><b>Cc: </b><a href="mailto:yottzumm@gmail.com">John Carlson</a>; <a href="mailto:x3d-public@web3d.org">X3D Graphics public mailing list</a><br><b>Subject: </b>json schema validation problem: "-children" comments inside "head"element<o:p></o:p></p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><p class=MsoNormal>Am getting json validation errors like the following when a comment appears inside a head tag, originally as peer of meta tags.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>================================================</p><p class=MsoNormal>validation error:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForWebAuthors/Chapter05-AppearanceMaterialTextures//FillProperties.json error checking with json-schema-validator</p><p class=MsoNormal>--- BEGIN C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForWebAuthors\Chapter05-AppearanceMaterialTextures\FillProperties.json---</p><p class=MsoNormal>validation: FAILURE</p><p class=MsoNormal>[ {</p><p class=MsoNormal>   "level" : "error",</p><p class=MsoNormal>   "schema" : {</p><p class=MsoNormal>     "loadingURI" : "file:/C:/x3d-code/www.web3d.org/specifications/x3d-3.3-JSONSchema.json#",</p><p class=MsoNormal>     "pointer" : "/definitions/head"</p><p class=MsoNormal>   },</p><p class=MsoNormal>   "instance" : {</p><p class=MsoNormal>     "pointer" : "/X3D/head"</p><p class=MsoNormal>   },</p><p class=MsoNormal>   "domain" : "validation",</p><p class=MsoNormal>   "keyword" : "additionalProperties",</p><p class=MsoNormal>   "message" : "object instance has properties which are not allowed by the schema: [\"-children\"]",</p><p class=MsoNormal>   "unwanted" : [ "-children" ]</p><p class=MsoNormal>} ]</p><p class=MsoNormal>--- END C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForWebAuthors\Chapter05-AppearanceMaterialTextures\FillProperties.json---</p><p class=MsoNormal>Java Result: 100</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>================================================</p><p class=MsoNormal>snippets:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>     "head": {</p><p class=MsoNormal>         "-children":[</p><p class=MsoNormal>           { "#comment":"The following component tag is needed since FillProperties node is not part of the default Immersive profile"</p><p class=MsoNormal>           }</p><p class=MsoNormal>         ],</p><p class=MsoNormal>         "component": [</p><p class=MsoNormal>           {</p><p class=MsoNormal>             "@name":"Shape",</p><p class=MsoNormal>             "@level":3</p><p class=MsoNormal>           }</p><p class=MsoNormal>         ],</p><p class=MsoNormal>         "meta": [</p><p class=MsoNormal>           {</p><p class=MsoNormal>             "@name":"title",</p><p class=MsoNormal>             "@content":"FillProperties.x3d"</p><p class=MsoNormal>           },</p><p class=MsoNormal>           {</p><p class=MsoNormal>             "@name":"description",</p><p class=MsoNormal>             "@content":"Demonstrate various FillProperties values."</p><p class=MsoNormal>           },</p><p class=MsoNormal>etc.</p><p class=MsoNormal>         ]</p><p class=MsoNormal>     },</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>================================================</p><p class=MsoNormal>   <head></p><p class=MsoNormal>     <!-- The following component tag is needed since FillProperties node is not part of the default Immersive profile --></p><p class=MsoNormal>     <component level='3' name='Shape'/></p><p class=MsoNormal>     <meta content='FillProperties.x3d' name='title'/></p><p class=MsoNormal>     <meta content='Demonstrate various FillProperties values.' name='description'/></p><p class=MsoNormal>etc.</p><p class=MsoNormal>   </head></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>================================================</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I think that the json schema needs to be allow the "-children" field here, and similarly inside other statements, wherever a "#comment" is allowed to appear.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Once we get this sorted out, we should check on the corresponding prose in the new draft X3D JSON Encoding specification.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>all the best, Don</p><p class=MsoNormal>-- </p><p class=MsoNormal>Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman@nps.edu</p><p class=MsoNormal>Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149</p><p class=MsoNormal>X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>