[x3d-public] updates to X3D Schema, X3DUOM: refactored names of enumeration lists

John Carlson yottzumm at gmail.com
Mon Oct 22 19:04:34 PDT 2018


Here are example changes for the enums to JSON schema:

Old way (limited)
"@closureType": {
-              "enum": [
-                "PIE",
-                "CHORD"
               ],
-              "default": "PIE",
-              "type": "string"
             },

New way (expanded)
  "@closureType": {
+              "anyOf": [
+                {
+                  "enum": [
+                    "PIE",
+                    "CHORD"
+                  ]
+                },
+                {
+                  "type": "string"
+                }
               ],
+              "default": "PIE"
             },

It would be valuable to spot check the JSON schema before accepting.  I already found some array of items that were missing enums.

John



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20181022/6e7266ad/attachment.html>


More information about the x3d-public mailing list