{
    "$schema": "https://json-schema.org/draft/2020-12/schema#",
    "$ref": "#/definitions/versions",
    "definitions": {
        "versions": {
            "type": "object",
            "properties": {
                "data": {
           
           "description": "",
                    "$ref": "#/definitions/data"
                },
                "software": {
                    "description": "",
                    "type": "object",
                    "additionalProperties": {
                        "$ref": "#/definitions/software"
                    }
                }
            },
            "required": [
                "data",
                "software"
            ],
            "title": "versions"
        },
        "data": {
            "type": "object",
            "properties": {
                "pdb_id": {
                    "description": "PDB ID as reported in Protein Data Bank",
                    "type": "string"
                },
                "coordinates_revision_date_pdb": {
                    "description": "Date of PDB-REDO run in format MM-DD-YYYY",
                    "type": ["string", "null"],
                    "format": "date"
                },
                "coordinates_revision_major_mmCIF": {
                    "description": "Major version number of mmCIF coordinates",
                    "type": ["string", "null"]
                },
                "coordinates_revision_minor_mmCIF": {
                    "description": "Minor version number of mmCIF coordinates",
                    "type": ["string", "null"]
                },
                "coordinates_edited": {
                    "description": "PDB-REDO did (True) or did not (False) edit the coordinates of the structure",
                    "type": "boolean"
                },
                "reflections_revision": {
                    "description": "Version number of reflection data",
                    "type": ["string", "null"]
                },
                "reflections_edited": {
                    "description": "PDB-REDO did (True) or did not (False) edit the reflection file of the PDB",
                    "type": "boolean"
                },
                "foldit_used": {
                    "description": "Describes whether a FoldIt model is used as input instead of a PDB model",
                    "type": "boolean"
                },
                "foldit_id": {
                    "description": "Identifier of puzzel for the used FoldIt model",
                    "type": ["integer", "null"]
                },
                "foldit_player": {
                    "description": "FoldIt player who made the model",
                    "type": ["string", "null"]
                }
            },
            "required": [
                "PDBID",
                "coordinates_revision_major_mmCIF",
                "coordinates_revision_minor_mmCIF",
                "coordinates_edited",
                "reflections_revision",
                "reflections_edited"
            ],
            "title": "data"
        },
        "software": {
            "description": "All software used by PDB-REDO listed",
            "type": "object",
            "properties": {
                "version": {
                    "description": "Version of the software",
                    "type": ["string", "null"]
                },
                "used": {
                    "description": "Software was used (true) or not (false) in the PDB-REDO run",
                    "type": ["boolean", "null"]
                }
            },
            "required": [
                "used",
                "version"
            ],
            "title": "software"
        }
    }
}
