[x3d-public] X3D JSON Schema updated for axis++ defaults (regression failure)

John Carlson yottzumm at gmail.com
Wed Feb 9 20:01:55 PST 2022


Report on JSON file generated by X3dToJson.xslt, download from
https://www.web3d.org/x3d/content/examples/Basic/StudentProjects/TrebuchetIndex.html

Note that the JSON linked file (on the above linked page) is essentially
identical to the  February 9th version, except for the date.

X3dToJson.xslt needs to be updated to not produce comments inside -children
fields at the same level as @USE field.  There should be NO -children
fields at the same level as @USE in X3DJSON

I believe this is the JSON in question.  Note @USE and -children at the
same level.
==
 { "Shape":
                                    {
                                      "@USE":"Torus",
                                      "-children":[
                                        {
                                          "#comment":"Knot"
                                        }
                                      ]
                                    }
==
This appears to be the problematic XML, but double check me please (there
are two Knot comments).
            <Shape USE='Torus'>
              <!-- Knot -->
            </Shape>

==

Please suggest an alternate JSON encoding of this XML

Updated JSON schema (with Bounded Object updates) available at normal
locations (see messages included).

Thanks!

John

$ node x3dvalidate.js Trebuchet.json
Can only validate version 4.0 presently. Switching version to 4.0.
Loading schema
Parsing schema
Adding schema
Schema 4.0 added
Schema 4.0 compiled
================================================================================
File: Trebuchet.json
Error reading Trebuchet.json
 keyword: required
 instancePath: /X3D/Scene/-children/8/Transform
 message: must have required property @USE
 params: {"missingProperty":"@USE"}
 file: Trebuchet.json
 version: 3.0

 keyword: required
 instancePath: /X3D/Scene/-children/8/Transform/-children/8/Transform
 message: must have required property @USE
 params: {"missingProperty":"@USE"}
 file: Trebuchet.json
 version: 3.0

 keyword: required
 instancePath:
/X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform
 message: must have required property @USE
 params: {"missingProperty":"@USE"}
 file: Trebuchet.json
 version: 3.0

 keyword: required
 instancePath:
/X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform/-children/0/Transform
 message: must have required property @USE
 params: {"missingProperty":"@USE"}
 file: Trebuchet.json
 version: 3.0

 keyword: additionalProperties
 instancePath:
/X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform/-children/0/Transform/-child
ren/0/Shape
 message: must NOT have additional properties
 params: {"additionalProperty":"-children"}
 file: Trebuchet.json
 version: 3.0

 keyword: additionalProperties
 instancePath:
/X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform/-children/0/Transform/-child
ren/0/Shape
 message: must NOT have additional properties
 params: {"additionalProperty":"@USE"}
 file: Trebuchet.json
 version: 3.0

 keyword: oneOf
 instancePath:
/X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform/-children/0/Transform/-child
ren/0/Shape
 message: must match exactly one schema in "oneOf"
 params: {"passingSchemas":null}
 file: Trebuchet.json
 version: 3.0

 keyword: oneOf
 instancePath:
/X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform/-children/0/Transform
 message: must match exactly one schema in "oneOf"
 params: {"passingSchemas":null}
 file: Trebuchet.json
 version: 3.0

 keyword: oneOf
 instancePath:
/X3D/Scene/-children/8/Transform/-children/8/Transform/-children/4/Transform
 message: must match exactly one schema in "oneOf"
 params: {"passingSchemas":null}
 file: Trebuchet.json
 version: 3.0

 keyword: oneOf
 instancePath: /X3D/Scene/-children/8/Transform/-children/8/Transform
 message: must match exactly one schema in "oneOf"
 params: {"passingSchemas":null}
 file: Trebuchet.json
 version: 3.0

 keyword: oneOf
 instancePath: /X3D/Scene/-children/8/Transform
 message: must match exactly one schema in "oneOf"
 params: {"passingSchemas":null}
 file: Trebuchet.json
 version: 3.0

On Mon, Feb 7, 2022 at 11:12 PM John Carlson <yottzumm at gmail.com> wrote:

> New fetchable X3D V4.0 JSON Schema fetchable from:
>
>
> https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/schema/x3d-4.0-JSONSchema.json
>
> Includes changes to title...word ordering and date time (now being the
> time generated.
>
> On Thu, Jan 27, 2022 at 2:55 PM John Carlson <yottzumm at gmail.com> wrote:
>
>> You may now grab new versions of X3D JSON schema:
>>
>> X3DJSONLD/x3d-4.0-JSONSchema.json at master · coderextreme/X3DJSONLD
>> (github.com)
>> <https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/schema/x3d-4.0-JSONSchema.json>
>>
>> (Includes Navigation.type update to JSON string instead of JSON array)
>>
>> Thanks for your support!
>>
>> John
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220209/1c874562/attachment.html>


More information about the x3d-public mailing list