[x3d-public] Little README.txt for x3d json schema,

John Carlson yottzumm at gmail.com
Mon Mar 12 12:36:07 PDT 2018


Most work takes place in this repository and is copied to others:

https://github.com/coderextreme/x3dschema

Main routine is

validate.sh

Modify this to suit your environment then run:

sh validate.sh

pick up results in results.txt, among others (check most recently modified files or source code for output files).

Change schema being output by changing line 26:

diff --git a/validatex3djson.js b/validatex3djson.js
index 17edde5..e4b7d48 100644
--- a/validatex3djson.js
+++ b/validatex3djson.js
@@ -26,7 +26,7 @@ for (var sversion in overallversions) {
 function testValid(versions, valids, v, file, ajvValidate, hello) {
        // console.log(valids[0], valids[1], v);
        // change v == ? and set ? to 0 for my schema reports and set ? to 1 for roy's schema reports
-       if (valids[0] !== valids[1] && v == 1) {
+       if (valids[0] !== valids[1] && v == 0) {
            var errs = ajvValidate[versions[v]].errors;
            for (var e in errs) {
                if (e == 0) {


This program currently reports when there’s a difference in the validation of two schemas against each file.  Rerun validate.sh for each time you change the above code.

Current results from 2 draft06 schemas, one autogenerated (mine) and roy’s hand generated one fixed for draft06 by me:


https://raw.githubusercontent.com/coderextreme/x3dschema/master/resultsMyDraft06Schema.txt

https://raw.githubusercontent.com/coderextreme/x3dschema/master/resultsRoysAndMyDraft06Schema.txt

I have done some preprocessing on the files, which was previously reported on October 26th or thereabouts, I believe, but not on these versions.  There may be added files to the JSON zip since that time, and those will need to be processed.

There are differences between my schemas and the official versions.  Feel free to validate and diff.

I will update to draft07 and the more recent validators when I get a chance.  Going back in emails takes time.  Is there a better way to keep track of my reports?   Thanks!

John


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180312/25ea6263/attachment.html>


More information about the x3d-public mailing list