<html xmlns:v="urn:schemas-microsoft-com:vml" 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 14 (filtered medium)"><style><!--
/* Font Definitions */
@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:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
{mso-style-priority:99;
mso-style-link:"Plain Text Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
span.PlainTextChar
{mso-style-name:"Plain Text Char";
mso-style-priority:99;
mso-style-link:"Plain Text";
font-family:"Calibri","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:770324291;
mso-list-type:hybrid;
mso-list-template-ids:-79671680 134807569 134807577 134807579 134807567 134807577 134807579 134807567 134807577 134807579;}
@list l0:level1
{mso-level-text:"%1\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-GB link=blue vlink=purple><div class=WordSection1><p class=MsoPlainText>Don,<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>I agree. I can, for this specific case:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText style='margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>1)<span style='font:7.0pt "Times New Roman"'> </span></span><![endif]>Update the Schema to permit this<o:p></o:p></p><p class=MsoPlainText style='margin-left:36.0pt;text-indent:-18.0pt;mso-list:l0 level1 lfo1'><![if !supportLists]><span style='mso-list:Ignore'>2)<span style='font:7.0pt "Times New Roman"'> </span></span><![endif]>Update the text of the draft encoding<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Then we probably want a more general review to see if there are missing instances.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Roy<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText><span lang=EN-US style='mso-fareast-language:EN-GB'>-----Original Message-----<br>From: Don Brutzman [mailto:brutzman@nps.edu] <br>Sent: 02 July 2016 07:00<br>To: Roy Walmsley<br>Cc: John Carlson; X3D Graphics public mailing list<br>Subject: json schema validation problem: "-children" comments inside "head" element</span></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>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=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>================================================<o:p></o:p></p><p class=MsoPlainText>validation error:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForWebAuthors/Chapter05-AppearanceMaterialTextures//FillProperties.json error checking with json-schema-validator<o:p></o:p></p><p class=MsoPlainText>--- BEGIN C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForWebAuthors\Chapter05-AppearanceMaterialTextures\FillProperties.json---<o:p></o:p></p><p class=MsoPlainText>validation: FAILURE<o:p></o:p></p><p class=MsoPlainText>[ {<o:p></o:p></p><p class=MsoPlainText> "level" : "error",<o:p></o:p></p><p class=MsoPlainText> "schema" : {<o:p></o:p></p><p class=MsoPlainText> "loadingURI" : "file:/C:/x3d-code/www.web3d.org/specifications/x3d-3.3-JSONSchema.json#",<o:p></o:p></p><p class=MsoPlainText> "pointer" : "/definitions/head"<o:p></o:p></p><p class=MsoPlainText> },<o:p></o:p></p><p class=MsoPlainText> "instance" : {<o:p></o:p></p><p class=MsoPlainText> "pointer" : "/X3D/head"<o:p></o:p></p><p class=MsoPlainText> },<o:p></o:p></p><p class=MsoPlainText> "domain" : "validation",<o:p></o:p></p><p class=MsoPlainText> "keyword" : "additionalProperties",<o:p></o:p></p><p class=MsoPlainText> "message" : "object instance has properties which are not allowed by the schema: [\"-children\"]",<o:p></o:p></p><p class=MsoPlainText> "unwanted" : [ "-children" ]<o:p></o:p></p><p class=MsoPlainText>} ]<o:p></o:p></p><p class=MsoPlainText>--- END C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForWebAuthors\Chapter05-AppearanceMaterialTextures\FillProperties.json---<o:p></o:p></p><p class=MsoPlainText>Java Result: 100<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>================================================<o:p></o:p></p><p class=MsoPlainText>snippets:<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText> "head": {<o:p></o:p></p><p class=MsoPlainText> "-children":[<o:p></o:p></p><p class=MsoPlainText> { "#comment":"The following component tag is needed since FillProperties node is not part of the default Immersive profile"<o:p></o:p></p><p class=MsoPlainText> }<o:p></o:p></p><p class=MsoPlainText> ],<o:p></o:p></p><p class=MsoPlainText> "component": [<o:p></o:p></p><p class=MsoPlainText> {<o:p></o:p></p><p class=MsoPlainText> "@name":"Shape",<o:p></o:p></p><p class=MsoPlainText> "@level":3<o:p></o:p></p><p class=MsoPlainText> }<o:p></o:p></p><p class=MsoPlainText> ],<o:p></o:p></p><p class=MsoPlainText> "meta": [<o:p></o:p></p><p class=MsoPlainText> {<o:p></o:p></p><p class=MsoPlainText> "@name":"title",<o:p></o:p></p><p class=MsoPlainText> "@content":"FillProperties.x3d"<o:p></o:p></p><p class=MsoPlainText> },<o:p></o:p></p><p class=MsoPlainText> {<o:p></o:p></p><p class=MsoPlainText> "@name":"description",<o:p></o:p></p><p class=MsoPlainText> "@content":"Demonstrate various FillProperties values."<o:p></o:p></p><p class=MsoPlainText> },<o:p></o:p></p><p class=MsoPlainText>etc.<o:p></o:p></p><p class=MsoPlainText> ]<o:p></o:p></p><p class=MsoPlainText> },<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>================================================<o:p></o:p></p><p class=MsoPlainText> <head><o:p></o:p></p><p class=MsoPlainText> <!-- The following component tag is needed since FillProperties node is not part of the default Immersive profile --><o:p></o:p></p><p class=MsoPlainText> <component level='3' name='Shape'/><o:p></o:p></p><p class=MsoPlainText> <meta content='FillProperties.x3d' name='title'/><o:p></o:p></p><p class=MsoPlainText> <meta content='Demonstrate various FillProperties values.' name='description'/> etc.<o:p></o:p></p><p class=MsoPlainText> </head><o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>================================================<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>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.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>Once we get this sorted out, we should check on the corresponding prose in the new draft X3D JSON Encoding specification.<o:p></o:p></p><p class=MsoPlainText><o:p> </o:p></p><p class=MsoPlainText>all the best, Don<o:p></o:p></p><p class=MsoPlainText>-- <o:p></o:p></p><p class=MsoPlainText>Don Brutzman Naval Postgraduate School, Code USW/Br <a href="mailto:brutzman@nps.edu"><span style='color:windowtext;text-decoration:none'>brutzman@nps.edu</span></a><o:p></o:p></p><p class=MsoPlainText>Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149<o:p></o:p></p><p class=MsoPlainText>X3D graphics, virtual worlds, navy robotics <a href="http://faculty.nps.edu/brutzman"><span style='color:windowtext;text-decoration:none'>http://faculty.nps.edu/brutzman</span></a><o:p></o:p></p></div></body></html>