[x3d-public] Error in BoxManC.json (attached)

John Carlson yottzumm at gmail.com
Sun May 10 04:40:44 PDT 2020


Note, this is V3.0 of X3D.  That perhaps is the difference?

John

On Sun, May 10, 2020 at 6:39 AM John Carlson <yottzumm at gmail.com> wrote:

> Viewpoints object(s) in X3dToJson.xslt and DOM2JSONSerializer.js
>
> Initial changes to the schema do not solve the problem.  I suggest
> possibly changing the JSON generated.
>
> What should an array of Viewpoints look like in JSON?
>
> The standard says that the viewpoints field is an array of Site, [Site] by
> default, and sequence<Object> abstractly.
>
> It would appear that I have a list of Viewpoints, not Sites, in the
> example, BoxManC.x3d?  So the example is incorrect??
>
> Any clarification would be welcome!
>
> John
>
> On Sun, May 10, 2020 at 6:22 AM John Carlson <yottzumm at gmail.com> wrote:
>
>> There's a JSON Schema validation error in BoxManC for the 3.0 X3D JSON
>> Schema:
>>
>> Generation of the JSON file should be reproducible by Don.  Both XML and
>> JSON are attached.
>>
>> Don, let me know if you want to update your 3.0 schema.  Roy's schema
>> doesn't work with my setup right now.
>>
>> Possible fixes include removing the shimming Viewpoint object between
>> -viewpoints and the actual element (similar to what we do with meta).
>>
>> But yeah, probably the draft-07 schemas need to be updated.
>>
>> $ !node
>> node.exe x3dvalidate.js ../X3DJSONLD/src/main/data/BoxManC.json
>> Loading schema
>> Parsing schema
>> Adding schema
>> Schema 3.0 added
>> Schema 3.0 compiled
>>
>> ================================================================================
>> File: ../X3DJSONLD/src/main/data/BoxManC.json
>> Error reading ../X3DJSONLD/src/main/data/BoxManC.json
>>  keyword: additionalProperties
>>  dataPath: X3D > Scene > -children > 3 > HAnimHumanoid
>>  value:
>> {"@name":"Humanoid","@DEF":"HUMANOID","@info":"|omitted|","@version":"2.0","-skeleton":"|omitted|","-children":"|omitted|","-skinCoord":"|omitted|","-skin":"|omitted|","-joints":"|omitted|","-sites":"|omitted|","-segments":"|omitted|","-viewpoints":"|omitted|"}
>>  message: should not have additional properties
>>  params: {"additionalProperty":"@name"}
>>  file: ../X3DJSONLD/src/main/data/BoxManC.json
>>  version: 3.0
>>
>>  keyword: additionalProperties
>>  dataPath: X3D > Scene > -children > 3 > HAnimHumanoid > -viewpoints > 0
>>  value: {"Viewpoint":"|omitted|"}
>>  message: should not have additional properties
>>  params: {"additionalProperty":"Viewpoint"}
>>  file: ../X3DJSONLD/src/main/data/BoxManC.json
>>  version: 3.0
>>
>>  keyword: oneOf
>>  dataPath: X3D > Scene > -children > 3 > HAnimHumanoid
>>  value:
>> {"@name":"Humanoid","@DEF":"HUMANOID","@info":"|omitted|","@version":"2.0","-skeleton":"|omitted|","-children":"|omitted|","-skinCoord":"|omitted|","-skin":"|omitted|","-joints":"|omitted|","-sites":"|omitted|","-segments":"|omitted|","-viewpoints":"|omitted|"}
>>  message: should match exactly one schema in "oneOf"
>>  params: {"passingSchemas":null}
>>  file: ../X3DJSONLD/src/main/data/BoxManC.json
>>  version: 3.0
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200510/c558cebc/attachment.html>


More information about the x3d-public mailing list