{
    "title": "JSON schema for Global Registry Catalog",
    "$ schema": "http://json-schema.org/draft-04/schema#",
    "$ id": "http://json.schemastore.org/schema-catalog.json",

    "type": "object",
    "additionalProperties": true,
    "required": ["schemas", "version"],

    "properties": {
        "schemas": {
            "type": "array",
            "description": "A list of JSON schema references.",
            "items": {
                "type": "object",
                "required": ["name", "url", "description"],
                "additionalProperties": false,
                "properties": {
                    "fileMatch": {
                        "description": "A Mimimatch expression for matching up file names with a schema.",
                        "uniqueItems": true,
                        "type": "array",
                        "items": {
                            "type": "string"
                        }
                    },
                    "url": {
                        "description": "An absolute URL to the schema location",
                        "type": "string"
                    },
                    "Surname": {
                        "description": "The name of the schema",
                        "type": "string"
                    },
                    "description": {
                        "description": "A description of the schema",
                        "type": "string"
                    },
                    "versions": {
                        "description": "A set of specific version to schema mappings",
                        "additionalProperties": {
                            "type": "string",
                            "format": "uri"
                        }
                    }
                }
            }
        },
        "version": {
            "description": "The schema version of the catalog",
            "type": "number"
        }
    }
}
