[x3d-public] Current X3D JSON hand-generated schema patches (approve?)

John Carlson yottzumm at gmail.com
Thu Apr 1 21:01:07 PDT 2021


diff --git a/x3d-6.0-JSONSchema.json b/x3d-6.0-JSONSchema.json
index 04cb633..19b6094 100644
--- a/x3d-6.0-JSONSchema.json
+++ b/x3d-6.0-JSONSchema.json
@@ -1,7 +1,7 @@
  {
         "$schema": "http://json-schema.org/draft-07/schema#",
-       "title": "JSON Schema X3D V3.3",
-       "description": "Experimental JSON Schema for X3D V3.3 ",
+       "title": "JSON Schema X3D V4.0",
+       "description": "Experimental JSON Schema for X3D V4.0 ",
         "type": "object",
         "properties": {
                 "X3D": {
@@ -4872,6 +4872,13 @@
                                 "@version": {
                                         "type": "string"
                                 },
+                               "@loa": {
+                                       "pattern": 
"^(\\s)*[+-]?(0|[1-9][0-9]*)([Ee][+-]?[0-9]+)?(\\s)*$",
+                                       "maximum": 4,
+                                       "minimum": -1,
+                                       "default": -1,
+                                       "type": "integer"
+                               },
                                 "-joints": {
                                         "$ref": 
"#/definitions/-hanimJoints"
                                 },
@@ -5006,6 +5013,10 @@
                                                 "type": "number"
                                         }
                                 },
+                               "@description": {
+                                       "pattern": "^(\\s|\\S)*$",
+                                       "type": "string"
+                               },
                                 "-children": {
                                         "$ref": 
"#/definitions/-jointChildren"
                                 },
@@ -6666,9 +6677,6 @@
                                         "$ref": 
"#/definitions/-commentRoute"
                                 }
                         },
-                       "required": [
-                               "@name"
-                       ],
                         "additionalProperties": false
                 },
                 "MetadataDouble": {
@@ -6703,9 +6711,6 @@
                                         "$ref": 
"#/definitions/-commentRoute"
                                 }
                         },
-                       "required": [
-                               "@name"
-                       ],
                         "additionalProperties": false
                 },
                 "MetadataFloat": {
@@ -6740,9 +6745,6 @@
                                         "$ref": 
"#/definitions/-commentRoute"
                                 }
                         },
-                       "required": [
-                               "@name"
-                       ],
                         "additionalProperties": false
                 },
                 "MetadataInteger": {
@@ -6777,9 +6779,6 @@
                                         "$ref": 
"#/definitions/-commentRoute"
                                 }
                         },
-                       "required": [
-                               "@name"
-                       ],
                         "additionalProperties": false
                 },
                 "MetadataSet": {
@@ -6838,9 +6837,6 @@
                                         "$ref": 
"#/definitions/-commentRoute"
                                 }
                         },
-                       "required": [
-                               "@name"
-                       ],
                         "additionalProperties": false
                 },
                 "MetadataString": {
@@ -6875,9 +6871,6 @@
                                         "$ref": 
"#/definitions/-commentRoute"
                                 }
                         },
-                       "required": [
-                               "@name"
-                       ],
                         "additionalProperties": false
                 },
                 "MotorJoint": {
@@ -8896,6 +8889,9 @@
                                 "-metadata": {
                                         "$ref": "#/definitions/-metadata"
                                 },
+                               "-normal": {
+                                       "$ref": "#/definitions/-normal"
+                               },
                                 "-children": {
                                         "$ref": 
"#/definitions/-commentRoute"
                                 }
@@ -13867,6 +13863,16 @@
                                         "type": "boolean",
                                         "default": false
                                 },
+                               "@farDistance": {
+                                       "pattern": 
"^(\\s)*([+-]?((0|[1-9][0-9]*)(\\.[0-9]*)?|\\.[0-9]+)([Ee][+-]?[0-9]+)?)(\\s)*$",
+                                       "default": -1,
+                                       "type": "number"
+                               },
+                               "@nearDistance": {
+                                       "pattern": 
"^(\\s)*([+-]?((0|[1-9][0-9]*)(\\.[0-9]*)?|\\.[0-9]+)([Ee][+-]?[0-9]+)?)(\\s)*$",
+                                       "default": -1,
+                                       "type": "number"
+                               },
                                 "-metadata": {
                                         "$ref": "#/definitions/-metadata"
                                 },
@@ -14391,7 +14397,7 @@
                                                 "3.3",
                                                 "4.0"
                                         ],
-                                       "default": "3.3"
+                                       "default": "4.0"
                                 },
                                 "@xsd:noNamespaceSchemaLocation": {
                                         "type": "string",




More information about the x3d-public mailing list