[x3d-public] Code for generating X3D JSON schema, draft06

Don Brutzman brutzman at nps.edu
Wed Mar 14 10:43:00 PDT 2018


John, this sounds great.

Wondering, for your generated JSON schema, can you diff it with our version-control JSON Schema by Roy? Looking at a diff (or simply a diff excerpt maybe) would help us focus on what changes might be needed.  That also might help us diagnose why some of the example test scenes aren't validating.

Note that the current X3D JSON schema we've published is JSON version 04, not 06 (i.e. http://json-schema.org/draft-04/schema#)

Online at
	http://www.web3d.org/specifications/x3d-3.3-JSONSchema.json

	http://www.web3d.org/specifications/X3dJsonSchemaDocumentation3.3/x3d-3.3-JSONSchema.html

	https://sourceforge.net/p/x3d/code/HEAD/tree/www.web3d.org/specifications/x3d-3.3-JSONSchema.json


On 3/12/2018 11:11 AM, John Carlson wrote:
> Here’s my complete code for generating X3D JSON schema, in accordance with draft06.
> 
> I do not know if the schema is right or not, but I have checked it against x3d resources examples, and have a few questions as to what the standard is.  It has different complaints than Roy’s schema in some cases, which we need to resolve.
> 
> https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/python/etgenerateJSONschema.py
> 
> Check the file being generated at the bottom of the source code, and paths to the object model etc. before running.
> 
> Good luck!
> 
> I think this would be fairly easily be made into a stylesheet, if you like.
> 
> You may check this into the sourceforge repository under some development branch, or work off my X3DJSONLD repository.
> 
> 
> I don’t recall if I sent you this Don, but there are ways with Ajv-errors to embed error messages in the schema, which we might use.  I am not sure what’s in the standard.
> 
> John
> 


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




More information about the x3d-public mailing list