{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "definitions": {
        "arrayOfString": {
            "items": {
                "type": "string"
            },
            "type": "array"
        },
        "uri": {
            "_format": "uri",
            "type": "string"
        }
    },
    "description": "LAX Schema for metadata returned by DataSources.",
    "properties": {
        "$schema": {
            "$ref": "#/definitions/uri"
        },
        "allow": {
            "$ref": "#/definitions/uri"
        },
        "annotations": {
            "items": {
                "additionalProperties": true,
                "type": "object"
            },
            "type": "array"
        },
        "description": {
            "type": "string"
        },
        "encoding": {
            "type": "string"
        },
        "format": {
            "$ref": "#/definitions/arrayOfString"
        },
        "language": {
            "$ref": "#/definitions/arrayOfString"
        },
        "license": {
            "$ref": "#/definitions/uri"
        },
        "name": {
            "type": "string"
        },
        "size": {
            "minimum": 0,
            "type": "integer"
        },
        "vendor": {
            "$ref": "#/definitions/uri"
        },
        "version": {
            "type": "string"
        }
    },
    "required": [
        "name",
        "vendor",
        "version",
        "allow",
        "license"
    ],
    "title": "DataSource Metadata",
    "type": "object"
}