{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "id": "https://hepdata.net/submission/schemas/1.0.0/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_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
            }
        }
    },
    "required": [
        "name",
        "description",
        "keywords",
        "data_file"
    ],
    "additionalProperties": false
}