{
    "definitions": {
        "date": {
            "description": "The date at which the file was generated.",
            "format": "date-time",
            "type": "string"
        },
        "dochtml": {
            "additionalProperties": false,
            "description": "Configuration of the online HTML documentation for the XML schema.",
            "properties": {
                "method": {
                    "description": "The method by which the URL is generated.",
                    "enum": [
                        "simple-pattern"
                    ],
                    "type": "string"
                },
                "pattern": {
                    "description": "The pattern to use.",
                    "type": "string"
                }
            },
            "required": [
                "method",
                "pattern"
            ],
            "type": "object"
        },
        "elements": {
            "description": "An array of all elements in the schema.",
            "items": {
                "additionalProperties": false,
                "properties": {
                    "desc": {
                        "description": "A short documentation string.",
                        "type": "string"
                    },
                    "name": {
                        "description": "The local name of the element.",
                        "type": "string"
                    },
                    "ns": {
                        "description": "The namespace URI of the element.",
                        "type": "string"
                    }
                },
                "required": [
                    "name",
                    "desc"
                ],
                "type": "object"
            },
            "type": "array"
        },
        "generator": {
            "description": "The name of the software that generated the JSON.",
            "type": "string"
        },
        "inline": {
            "additionalProperties": false,
            "description": "An object determining which elements are inline.",
            "properties": {
                "method": {
                    "description": "The method by which elements are addressed",
                    "enum": [
                        "name"
                    ],
                    "type": "string"
                },
                "rules": {
                    "additionalProperties": {
                        "type": "boolean"
                    },
                    "type": "object"
                }
            },
            "required": [
                "method",
                "rules"
            ],
            "type": "object"
        },
        "namespaces": {
            "description": "Prefix -> uri mapping of absolute namespaces.",
            "type": "object"
        },
        "version": {
            "description": "Records the version number of the format of the metadata file.",
            "type": "string"
        }
    },
    "description": "A schema describing metadata for wed modes.",
    "oneOf": [
        {
            "additionalProperties": false,
            "properties": {
                "date": {
                    "$ref": "#/definitions/date"
                },
                "dochtml": {
                    "description": "A URL to where the schema's documentation is stored.",
                    "type": "string"
                },
                "elements": {
                    "$ref": "#/definitions/elements"
                },
                "generator": {
                    "$ref": "#/definitions/generator"
                },
                "namespaces": {
                    "$ref": "#/definitions/namespaces"
                },
                "version": {
                    "enum": [
                        "1"
                    ]
                }
            },
            "required": [
                "version"
            ]
        },
        {
            "additionalProperties": false,
            "properties": {
                "date": {
                    "$ref": "#/definitions/date"
                },
                "dochtml": {
                    "$ref": "#/definitions/dochtml"
                },
                "elements": {
                    "$ref": "#/definitions/elements"
                },
                "generator": {
                    "$ref": "#/definitions/generator"
                },
                "inline": {
                    "$ref": "#/definitions/inline"
                },
                "namespaces": {
                    "$ref": "#/definitions/namespaces"
                },
                "version": {
                    "enum": [
                        "2"
                    ]
                }
            },
            "required": [
                "version",
                "namespaces"
            ]
        }
    ],
    "title": "Metadata",
    "type": "object"
}