[x3d-public] Comparison of Anchor schemas, draft06 standard for JSON schema generation

John Carlson yottzumm at gmail.com
Thu Mar 22 04:37:20 PDT 2018


  "Anchor": {
      "type": "object",
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "@USE": {
              "type": "string"
            },
            "-children": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "properties": {
                  "#comment": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            }
          },
          "required": [
            "@USE"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "IS": {
              "$ref": "#/definitions/IS"
            },
            "@bboxCenter": {
              "type": "array",
              "minItems": 3,
              "maxItems": 3,
              "items": {
                "default": 0,
                "type": "number"
              }
            },
            "@bboxSize": {
              "type": "array",
              "minItems": 3,
              "maxItems": 3,
              "items": {
                "default": -1,
                "type": "number"
              }
            },
            "-children": {
              "$ref": "#/definitions/-X3DChildNodeMFNode"
            },
            "@description": {
              "type": "string"
            },
            "-metadata": {
              "$ref": "#/definitions/-X3DMetadataObjectSFNode"
            },
            "@parameter": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "@url": {
              "type": "array",
              "minItems": 1,
              "items": {
                "format": "uri-reference",
                "type": "string"
              }
            },
            "@DEF": {
              "type": "string"
            },
            "@class": {
              "type": "string"
            }
          },
          "additionalProperties": false
        }
      ]
    },
"Anchor": {
			"type": "object",
			"properties": {
				"@DEF": {
					"type": "string"
				},
				"@USE": {
					"type": "string"
				},
				"IS": {
					"$ref": "#/definitions/IS"
				},
				"@bboxCenter": {
					"type": "array",
					"minItems": 3,
					"maxItems": 3,
					"items": {
						"type": "number",
						"default": 0
					}
				},
				"@bboxSize": {
					"$ref": "#/definitions/@bboxSize"
				},
				"-children": {
					"$ref": "#/definitions/-children"
				},
				"@description": {
					"type": "string"
				},
				"-metadata": {
					"$ref": "#/definitions/-metadata"
				},
				"@parameter": {
					"type": "array",
					"minItems": 1,
					"items": {
						"type": "string"
					}
				},
				"@url": {
					"type": "array",
					"minItems": 1,
					"items": {
						"type": "string",
						"format": "uri-reference"
					}
				}
			},
			"additionalProperties": false
		},
Sent from Mail for Windows 10

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180322/789aa740/attachment-0001.html>


More information about the x3d-public mailing list