{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "https://hepdata.net/submission/schemas/1.0.1/submission_schema.json",
    "title": "Submission table",
    "description": "Metadata for a HEPData table apart from independent_variables and dependent_variables",
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "maxLength": 64
        },
        "location": {
            "type": "string",
            "maxLength": 256
        },
        "description": {
            "type": "string"
        },
        "keywords": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "name": {
                        "type": "string",
                        "maxLength": 128,
                        "enum": [
                            "cmenergies",
                            "observables",
                            "reactions",
                            "phrases"
                        ]
                    },
                    "values": {
                        "type": "array",
                        "items": {
                            "type": [
                                "string",
                                "number"
                            ]
                        }
                    }
                },
                "required": [
                    "name",
                    "values"
                ],
                "additionalProperties": false
            }
        },
        "data_file": {
            "type": "string"
        },
        "data_schema": {
            "type": "string",
            "description": "Remote location of the JSON schema for the data_file"
        },
        "data_license": {
            "type": "object",
            "properties": {
                "name": {
                    "type": "string",
                    "maxLength": 256
                },
                "url": {
                    "type": "string",
                    "maxLength": 256
                },
                "description": {
                    "type": "string"
                }
            },
            "required": [
                "name",
                "url"
            ],
            "additionalProperties": false
        },
        "additional_resources": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "location": {
                        "type": "string",
                        "maxLength": 256
                    },
                    "description": {
                        "type": "string"
                    },
                    "type": {
                        "type": "string",
                        "maxLength": 64
                    },
                    "license": {
                        "type": "object",
                        "properties": {
                            "name": {
                                "type": "string",
                                "maxLength": 256
                            },
                            "url": {
                                "type": "string",
                                "maxLength": 256
                            },
                            "description": {
                                "type": "string"
                            }
                        },
                        "required": [
                            "name",
                            "url"
                        ],
                        "additionalProperties": false
                    }
                },
                "required": [
                    "location"
                ],
                "additionalProperties": false
            }
        },
        "table_doi": {
            "type": "string",
            "description": "Present if a user downloads YAML from an existing HEPData record"
        }
    },
    "required": [
        "name",
        "description",
        "keywords",
        "data_file"
    ],
    "additionalProperties": false
}