Schema definition head
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3609.png
location C:\x3d-code\www.web3d.org\specifications\x3d-3.3-JSONSchema.json
type Object
properties
Name   Occurrence
component   Optional
unit   Optional
meta   Optional
-children   Optional
used by X3D / head
source code "head": {
    "type": "object",
    "properties": {
        "component": {
            "type": "array",
            "minItems": 1,
            "items": {
                "type": "object",
                "properties": {
                    "@name": {
                        "type": "string"
                    },
                    "@level": {
                        "type": "integer",
                        "minimum": 1
                    }
                },
                "required": [
                    "@name",
                    "@level"
                ],
                "additionalProperties": false
            }
        },
        "unit": {
            "type": "array",
            "minItems": 1,
            "items": {
                "type": "object",
                "properties": {
                    "@name": {
                        "type": "string"
                    },
                    "@category": {
                        "type": "string",
                        "enum": [
                            "angle",
                            "force",
                            "length",
                            "mass"
                        ]
                    },
                    "@conversionFactor": {
                        "type": "number"
                    }
                },
                "required": [
                    "@name",
                    "@category",
                    "@conversionFactor"
                ],
                "additionalProperties": false
            }
        },
        "meta": {
            "type": "array",
            "minItems": 1,
            "items": {
                "type": "object",
                "properties": {
                    "@name": {
                        "type": "string"
                    },
                    "@content": {
                        "type": "string"
                    }
                },
                "required": [
                    "@name",
                    "@content"
                ],
                "additionalProperties": false
            }
        },
        "-children": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "#comment": {
                        "type": "string"
                    }
                },
                "additionalProperties": false
            }
        }
    },
    "additionalProperties": false
}

Property head / component
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3610.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  1
array items
[0]+  Schema
source code "component": {
    "type": "array",
    "minItems": 1,
    "items": {
        "type": "object",
        "properties": {
            "@name": {
                "type": "string"
            },
            "@level": {
                "type": "integer",
                "minimum": 1
            }
        },
        "required": [
            "@name",
            "@level"
        ],
        "additionalProperties": false
    }
}

Array item wildcard head / component > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3611.png
type Object
properties
Name   Occurrence
@name   Required
@level   Required
source code {
    "type": "object",
    "properties": {
        "@name": {
            "type": "string"
        },
        "@level": {
            "type": "integer",
            "minimum": 1
        }
    },
    "required": [
        "@name",
        "@level"
    ],
    "additionalProperties": false
}

Property head / component > array items [0]+ / Schema / @name
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3612.png
property details
Occurrence  Required
type String
source code "@name": {
    "type": "string"
}

Property head / component > array items [0]+ / Schema / @level
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3613.png
property details
Occurrence  Required
type Numeric
numeric constraints
Mode  Integer
Minimum  1
source code "@level": {
    "type": "integer",
    "minimum": 1
}

Property head / unit
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3614.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  1
array items
[0]+  Schema
source code "unit": {
    "type": "array",
    "minItems": 1,
    "items": {
        "type": "object",
        "properties": {
            "@name": {
                "type": "string"
            },
            "@category": {
                "type": "string",
                "enum": [
                    "angle",
                    "force",
                    "length",
                    "mass"
                ]
            },
            "@conversionFactor": {
                "type": "number"
            }
        },
        "required": [
            "@name",
            "@category",
            "@conversionFactor"
        ],
        "additionalProperties": false
    }
}

Array item wildcard head / unit > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3615.png
type Object
properties
Name   Occurrence
@name   Required
@category   Required
@conversionFactor   Required
source code {
    "type": "object",
    "properties": {
        "@name": {
            "type": "string"
        },
        "@category": {
            "type": "string",
            "enum": [
                "angle",
                "force",
                "length",
                "mass"
            ]
        },
        "@conversionFactor": {
            "type": "number"
        }
    },
    "required": [
        "@name",
        "@category",
        "@conversionFactor"
    ],
    "additionalProperties": false
}

Property head / unit > array items [0]+ / Schema / @name
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3616.png
property details
Occurrence  Required
type String
source code "@name": {
    "type": "string"
}

Property head / unit > array items [0]+ / Schema / @category
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3617.png
property details
Occurrence  Required
type String
enumerations
Type   Value
string   angle
string   force
string   length
string   mass
source code "@category": {
    "type": "string",
    "enum": [
        "angle",
        "force",
        "length",
        "mass"
    ]
}

Property head / unit > array items [0]+ / Schema / @conversionFactor
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3618.png
property details
Occurrence  Required
type Numeric
source code "@conversionFactor": {
    "type": "number"
}

Property head / meta
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3619.png
property details
Occurrence  Optional
type Array
array constraints
Min Items  1
array items
[0]+  Schema
source code "meta": {
    "type": "array",
    "minItems": 1,
    "items": {
        "type": "object",
        "properties": {
            "@name": {
                "type": "string"
            },
            "@content": {
                "type": "string"
            }
        },
        "required": [
            "@name",
            "@content"
        ],
        "additionalProperties": false
    }
}

Array item wildcard head / meta > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3620.png
type Object
properties
Name   Occurrence
@name   Required
@content   Required
source code {
    "type": "object",
    "properties": {
        "@name": {
            "type": "string"
        },
        "@content": {
            "type": "string"
        }
    },
    "required": [
        "@name",
        "@content"
    ],
    "additionalProperties": false
}

Property head / meta > array items [0]+ / Schema / @name
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3621.png
property details
Occurrence  Required
type String
source code "@name": {
    "type": "string"
}

Property head / meta > array items [0]+ / Schema / @content
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3622.png
property details
Occurrence  Required
type String
source code "@content": {
    "type": "string"
}

Property head / -children
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3623.png
property details
Occurrence  Optional
type Array
array items
[0]+  Schema
source code "-children": {
    "type": "array",
    "items": {
        "type": "object",
        "properties": {
            "#comment": {
                "type": "string"
            }
        },
        "additionalProperties": false
    }
}

Array item wildcard head / -children > array items [0]+ / Schema
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3624.png
type Object
properties
Name   Occurrence
#comment   Optional
source code {
    "type": "object",
    "properties": {
        "#comment": {
            "type": "string"
        }
    },
    "additionalProperties": false
}

Property head / -children > array items [0]+ / Schema / #comment
diagram x3d-3.3-JSONSchema_diagrams/x3d-3.3-JSONSchema_p3625.png
property details
Occurrence  Optional
type String
source code "#comment": {
    "type": "string"
}


JSON Schema documentation generated by XMLSpy JSON Schema Editor http://www.altova.com/xmlspy/json-schema-editor.html