[x3d-public] Support for both JSON string and JSON array for NavigationInfo @type
John Carlson
yottzumm at gmail.com
Thu Aug 24 07:20:39 PDT 2023
Current X3D JSON schema is here:
X3DJSONLD/src/main/schema/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>
Enjoy!
John
On Thu, Aug 24, 2023 at 9:16 AM John Carlson <yottzumm at gmail.com> wrote:
> I have added an alternate encoding for NavigationInfo at type to the X3D
> JSON Schema:
>
> The essential parts are below.
>
> This will allow @type to be coded either as a string, like XML MFString,
> or as an array. This will allow @type to be specified like other
> MFStrings, like @justify.
>
> See https://www.web3d.org/x3d/stylesheets/X3dToJson.html
>
> (this is in just one of 3 schemas for NavigationInfo. The other specifies
> a JSON string.).
>
> + "@type": {
> + "$comment": "MFString inputOutput",
> + "type": "array",
> + "items": {
> + "anyOf": [
> + {
> + "enum": [
> + "ANY",
> + "WALK",
> + "EXAMINE",
> + "FLY",
> + "LOOKAT",
> + "NONE",
> + "EXPLORE"
> + ]
> + },
> + {
> + "type": "string"
> + }
> + ],
> + "default": [ "EXAMINE", "ANY" ],
> + "type": "string"
> + }
> + },
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20230824/92326bda/attachment-0001.html>
More information about the x3d-public
mailing list