[x3d-public] [x3d] Topics for Discussion at JSON meeting Friday5th February 2016

Don Brutzman brutzman at nps.edu
Fri Feb 5 10:37:03 PST 2016


[correction: shifted to x3d-public]

Call in progress, interesting discussions and progress!

Attached is an image illustrating the validation power of the draft JSON schema that Roy has created, as illustrated by XML Spy.

On 2/4/2016 10:56 AM, Roy Walmsley wrote:
> Topics for Discussion for JSON encoding meeting February 5^th 2016 at 1000 PST, 1800 GMT.
>
> 1)Review of progress on JSON Schema development and validation testing on example archive.
>
> 2)Encoding of node fields in ‘field’ and ‘fieldValue’ elements within Script and Prototypes.
>
> 3)Encoding of node children in ProtoBody
>
> 4)Encoding of single value for an MFxxxxx field (non-node)  - array or single value
>
> 5)Validation of /url/ fields.
>
> 6)The numeric value -0.
>
> Please feel free to add or amend as appropriate.
>
> Illustration of 2) above is in X3D Example Archives: Basic, CAD, Cad Geometry Extern Prototypes (see http://www.web3d.org/x3d/content/examples/Basic/CAD/_pages/page02.html)
>
> Find the ProtoInstance named ‘IndexedQuadSet’. It has two fieldValue children. The second has the name ‘coord’, and a child Coordinate node. When converted into JSON this Coordinate node is allocated to a field /-coord/, which is the default containerField name for this node. This is incorrect. It should be allocated to the /-value/ field. This is because the element fieldValue has attributes of ‘name’ and ‘value’.
>
> A similar issue arises with default values for node fields within the field element.
>
> Taking 3) above: ProtoBody can take any nodes as children. The current converter assigns them to a field named as per the default containerField. I propose that all  nodes, irrespective of type, be added to a /-children/ field.
>
> Roy


all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman

-------------- next part --------------
A non-text attachment was scrubbed...
Name: x3d-3.3-JsonSchema-bbox.png
Type: image/png
Size: 32181 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160205/8c19e2fd/attachment-0001.png>


More information about the x3d-public mailing list