[x3d-public] Progress on X3D JSON schema validation--addition of pattern

John Carlson yottzumm at gmail.com
Sun Jun 7 13:17:43 PDT 2020


Hmm, currently using jsonlint to check sanity and format.

John

On Sun, Jun 7, 2020 at 2:04 PM Don Brutzman <brutzman at nps.edu> wrote:

> You probably know the following but may find it useful to cross check.
>
> * X3D Regular Expressions (regexes)
>    https://www.web3d.org/specifications/X3dRegularExpressions.html
>
> These are XML regular expressions.  Primary differences would be
> separators, note that these forbid intermediate commas within
> Vec2f/Vec3f/Color/Orientation/etc. values since that can mask flaws that
> are difficult to debug in very long arrays.
>
> Wondering if you had considered normalizing or minifying JSON before
> applying regex, or simply have regex handle that.
>
> On 6/7/2020 4:24 AM, John Carlson wrote:
> > Now basing patterns on this:
> >
> >
> https://json-schema.org/understanding-json-schema/reference/regular_expressions.html
> >
> > Thanks,
> >
> > John
> >
> > On Sun, Jun 7, 2020 at 6:17 AM John Carlson <yottzumm at gmail.com <mailto:
> yottzumm at gmail.com>> wrote:
> >
> >     If someone finds a better way to encoding patterns, great.  Here is
> the V4 X3D JSON schema attached zipped.
> >
> >     On Sun, Jun 7, 2020 at 6:13 AM John Carlson <yottzumm at gmail.com
> <mailto:yottzumm at gmail.com>> wrote:
> >
> >         Archive pattern errors in x3d resources archives JSON files.
> >
> >         I think many of these are erroneous, if not all of them.
> >
> >         Attached, gzipped.
> >
> >         On Sun, Jun 7, 2020 at 6:08 AM John Carlson <yottzumm at gmail.com
> <mailto:yottzumm at gmail.com>> wrote:
> >
> >             I used two types of patterns, one beginning with / and
> ending with /, and another beginning with ^ and ending with %.  The /
> version found more errors on my X3DJSONLD files. The other patterns seemed
> to find other JSON errors.
> >
> >             I will next produce the x3d resource examples with the /.../
> patterns.
> >
> >             John
> >
> >
> > _______________________________________________
> > x3d-public mailing list
> > x3d-public at web3d.org
> > http://web3d.org/mailman/listinfo/x3d-public_web3d.org
> >
>
> all the best, Don
> --
> Don Brutzman  Naval Postgraduate School, Code USW/Br
> brutzman at nps.edu
> Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
> X3D graphics, virtual worlds, navy robotics
> http://faculty.nps.edu/brutzman
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200607/b4dae5cf/attachment.html>


More information about the x3d-public mailing list