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

John Carlson yottzumm at gmail.com
Sun May 10 12:19:18 PDT 2020


Looked at BoxMan.x3d. It looks right, but I haven't validated it yet.   The
HAnimSite contains several Viewpoint's

Great! Now we just need to fix create3000's version (BoxManC.x3d).

Thanks,

John

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

> Maybe we should have an online session where we're both watching when this
> BoxManC.x3d (in create3000's library) is patched?  It's actually a test
> file, so that probably means it's a negative test?
>
> On Sun, May 10, 2020 at 6:49 AM John Carlson <yottzumm at gmail.com> wrote:
>
>> BoxManC.x3d validation errors attached (may be too big).
>>
>> Figured that one out, perhaps.  What's next?
>>
>>
>>
>> On Sun, May 10, 2020 at 6:40 AM John Carlson <yottzumm at gmail.com> wrote:
>>
>>> 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/b535a987/attachment.html>


More information about the x3d-public mailing list