[x3d-public] JSON schema generator
John Carlson
yottzumm at gmail.com
Wed Nov 18 14:34:12 PST 2020
For Java, there is
https://github.com/ssilverman/snowy-json which supports JSON Schema draft
2019-09. I’m also looking at another JavaScript validator that is
significantly faster than Ajv and validates with 2019-09 and has the fewest
bugs — 1, according to the test suite.
It seems like there’s been significant progress on JSON Schema code, so
I’ll revisit to see if my code is worth revising, or if something like
es6x3d API is more desirable.
John
On Wed, Nov 18, 2020 at 4:11 PM John Carlson <yottzumm at gmail.com> wrote:
> I read about Ajv 7 (beta). It uses TypeScript. I currently use Ajv 6
> something I am fairly sure. The beta doesn’t use a version number, so I
> am fairly sure using a * version will be ok to grab latest (6). The good
> news is the beta supports JSON schema 2019-09 (draft)
>
> John
>
> On Wed, Nov 18, 2020 at 4:01 PM John Carlson <yottzumm at gmail.com> wrote:
>
>>
>> https://raw.githubusercontent.com/coderextreme/X3DJSONLD/master/src/main/shell/generateSchema.sh
>>
>> Above is a shell script to generate all versions of X3D JSON schema in
>> JSON-schema draft-07.
>>
>> FYI, there are JSON schema draft-07 validators in use: everit and Ajv.
>>
>> Don, I seem to remember an issue we had with generating spurious errors
>> when validating nodes with USE. The answer I figured out was turn off
>> debugging and go to the deepest reported node in the document for where the
>> error is. The Ajv author said he would not change this, but there’s the
>> Ajv-errors package.
>>
>> Please review.
>>
>> John
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20201118/27587f72/attachment.html>
More information about the x3d-public
mailing list