<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Cool. Good work Don. I reported earlier that schema validation was integrated into my X3D JSON Loader, if you don’t want to have to bother with uploading a schema. <a href="http://coderextreme.net/X3DJSONLD/" class="">http://coderextreme.net/X3DJSONLD/</a> Recent additions include adding encoding and version from JSON to XML. I currently use the Ajv schema validation suite which reports different errors than json-schema-validator.<div class=""><div class="">John<br class=""><div><blockquote type="cite" class=""><div class="">On Mar 26, 2016, at 9:39 PM, Don Brutzman <<a href="mailto:brutzman@nps.edu" class="">brutzman@nps.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">1. jslint balks at the current x3d-3.3-JSONSchema.json as follows. These errors can be silenced using the --white command-line switch. Your call<br class=""><br class=""><a href="http://happygiraffe.github.io/jslint4java/cli.html" class="">http://happygiraffe.github.io/jslint4java/cli.html</a><br class=""><br class="">First check X3D JSON Schema<br class="">..error checking with jslint<br class="">jslint:../../specifications/x3d-3.3-JSONSchema.json:2:1:Use spaces, not tabs.<br class="">jslint: jslint.options=white: No such file or directory.<br class="">jslint:../../specifications/x3d-3.3-JSONSchema.json:3:1:Use spaces, not tabs.<br class="">jslint:../../specifications/x3d-3.3-JSONSchema.json:4:1:Use spaces, not tabs.<br class="">jslint:../../specifications/x3d-3.3-JSONSchema.json:5:1:Use spaces, not tabs.<br class="">jslint:../../specifications/x3d-3.3-JSONSchema.json:6:1:Use spaces, not tabs.<br class="">[...]<br class="">jslint:../../specifications/x3d-3.3-JSONSchema.json:51:1:Too many errors. (0% scanned).<br class="">Java Result: 1<br class=""><br class="">==========================================================================<br class=""><br class="">2. I haven't figured out how to invoke jshint (likely using Java Rhino) but online checker reports no issues with your 17,575 lines of JSON source.<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>http://jshint.com<br class=""><br class="">==========================================================================<br class=""><br class="">3. JSON Schema Validator has no problems, either checking the schema by itself or checking HelloWorld.json.<br class=""><br class="">https://github.com/fge/json-schema-validator<br class=""><br class="">$ java -jar json-schema-validator-2.2.6-lib.jar ../../../../../specifications/x3d-3.3-JSONSchema.json ../HelloWorld.json<br class="">--- BEGIN C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForAdvancedModeling\HelloWorld.json---<br class="">validation: SUCCESS<br class="">--- END C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForAdvancedModeling\HelloWorld.json---<br class=""><br class="">$ java -jar json-schema-validator-2.2.6-lib.jar ../../../../../specifications/x3d-3.3-JSONSchema.json ../HelloWorld.json<br class="">--- BEGIN C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForAdvancedModeling\HelloWorld.json---<br class="">validation: SUCCESS<br class="">--- END C:\x3d-code\www.web3d.org\x3d\content\examples\X3dForAdvancedModeling\HelloWorld.json---<br class=""><br class="">==========================================================================<br class=""><br class="">4. jslint and json-schema-validator checking of both X3D JSON Schema and JSON test examples has been added to the x3d stylesheets project, invoked from the build.xml target test.X3dToJson.xslt as follows.<br class=""><br class="">ant -f C:\\x3d-code\\www.web3d.org\\x3d\\stylesheets test.X3dToJson.xslt<br class="">test.mkdir:<br class="">test.X3dToJson.xslt:<br class="">=====================================<br class="">First check X3D JSON Schema:<br class="">..error checking with jslint<br class="">..error checking with json-schema-validator<br class="">--- BEGIN C:\x3d-code\www.web3d.org\specifications\x3d-3.3-JSONSchema.json---<br class="">validation: SUCCESS<br class="">--- END C:\x3d-code\www.web3d.org\specifications\x3d-3.3-JSONSchema.json---<br class="">=====================================<br class="">... etc<br class="">==========================================================================<br class=""><br class="">5. This X3D JSON Schema validation is also now integrated into the full examples build when converting .x3d scenes to .json. Regression testing in progress, will post results later.<br class=""><br class="">all the best, Don<br class="">-- <br class="">Don Brutzman Naval Postgraduate School, Code USW/Br brutzman@nps.edu<br class="">Watkins 270, MOVES Institute, Monterey CA 93943-5000 USA +1.831.656.2149<br class="">X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman<br class=""></div></div></blockquote></div><br class=""></div></div></body></html>