{
    "$schema": "https://json-schema.org/draft/2020-12/schema#",
    "type": "array",
    "items": {
        "$ref": "#/definitions/final"
    },
    "definitions": {
        "final": {
            "description" : "Parameters of the residue present in the PDB-REDO model",
            "type": "object",
            "properties": {
                "EDIAm": {
                    "description": "Fit to the electron density EDIAm score for all atoms of the residue",
                    "type": ["number", "null"]
                },
                "NGRID": {
                    "description": "Number of statistically independent grid points",
                    "type": ["integer", "null"]
                },
                "OPIA": {
                    "description": "Measure that indicaties the OPIA fit to the electron density, this is the fraction of atoms having an EDIA score greater than 0.8",
                    "type": ["number", "null"]
                },
                "RSCCS": {
                    "description": "Real-space correlation coefficient of the residue in the PDB-REDO model",
                    "type": ["number", "null"]
                },
                "RSR": {
                    "description": "Real-space R-factor of the residue in the PDB-REDO model",
                    "type": ["number", "null"]
                },
                "SRSR": {
                    "description": "Estimated standard deviation for Real-space R-factor",
                    "type": ["number", "null"]
                },
                "asymID": {
                    "description": "asymID of the residue as found in mmCIF file",
                    "type": "string"
                },
                "compID": {
                    "description": "compID of the residue as found in mmCIF file",
                    "type": "string"
                },
                "pdb": {
                    "description": "the residue identifiers as reported in pdb file",
                    "$ref": "#/definitions/pdb"
                },
                "seqID": {
                    "description": "seqID of the residue as found in mmCIF file",
                    "type": "integer"
                }
            },
            "required": [
                "EDIAm",
                "NGRID",
                "OPIA",
                "RSCCS",
                "RSR",
                "SRSR",
                "asymID",
                "compID",
                "pdb",
                "seqID"
            ],
            "title": "final"
        },
        "pdb": {
            "type": "object",
            "properties": {
                "compID": {
                    "description": "compID of the residue as reported in pdb file",
                    "type": "string"
                },
                "insCode": {
                    "description": "insCode of the residue as reported in pdb file",
                    "type": "string"
                },
                "seqNum": {
                    "description": "seqNum of the residue as reported in pdb file",
                    "type": "integer"
                },
                "strandID": {
                    "description": "strandID of the residue as reported in pdb file",
                    "type": "string"
                }
            },
            "required": [
                "compID",
                "insCode",
                "seqNum",
                "strandID"
            ],
            "title": "pdb"
        }
    }
}
