[x3d-public] One change to JSON schema for Extrusion @spine
    Roy Walmsley 
    roy.walmsley at ntlworld.com
       
    Sun Apr 17 05:21:47 PDT 2016
    
    
  
John,
 
Good spot. Yes, it does need to be changed. The "additionalItems" name/value
pair can't be simply set to true because the type needs to be specified. So,
the amended text for the whole of the @spine field is:
 
                "@spine": {
                    "type": "array",
                    "minItems": 6,
                    "items": [
                        {
                            "type": "number",
                            "default": 0
                        },
                        {
                            "type": "number",
                            "default": 0
                        },
                        {
                            "type": "number",
                            "default": 0
                        },
                        {
                            "type": "number",
                            "default": 0
                        },
                        {
                            "type": "number",
                            "default": 1
                        },
                        {
                            "type": "number",
                            "default": 0
                        }
                    ],
                    "additionalItems": {
                       "type": "number"
                    }
                },
 
I checked in my auto generated partial schema and that will be OK.
 
Thanks,
 
Roy
 
From: John Carlson [mailto:yottzumm at gmail.com] 
Sent: 17 April 2016 03:24
To: Roy Walmsley
Cc: Don Brutzman; X3D Graphics public mailing list
Subject: One change to JSON schema for Extrusion @spine
 
Roy,
I made this one change to the JSON schema to get my Extrusions to pass the
schema.  Otherwise, the spine is limited to 7 items I believe.  Please let
me know what is right.
John
$ diff -c x3d-3.3-JSONSchema.json
~/Downloads/x3d-code/www.web3d.org/specifications/x3d-3.3-JSONSchema.json 
*** x3d-3.3-JSONSchema.json               2016-04-16 21:23:16.000000000
-0400
---
/Users/johncarlson/Downloads/x3d-code/www.web3d.org/specifications/x3d-3.3-J
SONSchema.json                2016-04-09 17:52:52.000000000 -0400
***************
*** 3729,3735 ****
                              "type": "number"
                          }
                      ],
!                     "additionalItems": true
                  },
                  "-metadata": {
                      "$ref": "#/definitions/-metadata"
--- 3729,3735 ----
                              "type": "number"
                          }
                      ],
!                     "additionalItems": false
                  },
                  "-metadata": {
                      "$ref": "#/definitions/-metadata"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20160417/882f65e7/attachment-0001.html>
    
    
More information about the x3d-public
mailing list