[x3d-public] X3D JSON Schema updated for axis++ defaults

John Carlson yottzumm at gmail.com
Mon Feb 7 21:52:56 PST 2022


Comment validation removed.  Did not find any examples.   Please test.

Thanks!

John

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

> Can we put this and any outstanding JSON schema modifications on the
> agenda for next week?
>
>>
>>
>> 2. Saw a documentation problem:  USE nodes can’t indicate anything
>> besides the @USE value (except for containerField value for relevant
>> parent-child relationship in XML encoding).  So your following guidance
>> about comments is not portable outside of JSON.
>>
>>     "RigidBody": {
>>
>>       "type": "object",
>>
>>       "oneOf": [
>>
>>         {
>>
>>           "type": "object",
>>
>>           "properties": {
>>
>>             "@class": {
>>
>>               "type": "string"
>>
>>             },
>>
>>             "@USE": {
>>
>>               "type": "string"
>>
>>             },
>>
>>             "-children": {
>>
>>               "type": "array",
>>
>>               "minItems": 1,
>>
>>               "items": {
>>
>>                 "type": "object",
>>
>>                 "properties": {
>>
>>                   "#comment": {
>>
>>                     "type": "string",
>>
>>                     "$comment": "#comment statements are the only allowed
>> in -children node when using a USE field"
>>
>>                   }
>>
>>                 },
>>
>>                 "additionalProperties": false
>>
>>               }
>>
>>             }
>>
>>          },
>>
>>           "required": [
>>
>>             "@USE"
>>
>>           ],
>>
>>           "additionalProperties": false
>>
>>         },
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220207/0858f751/attachment.html>


More information about the x3d-public mailing list