{
    "additionalProperties": false,
    "description": "An object that is applied to a sample to update one or more attributes and/or one or more external references",
    "properties": {
        "attributesPost": {
            "description": "The updated version of the attribute",
            "items": {
                "additionalProperties": false,
                "description": "Define the way attributes are described in a curation object",
                "properties": {
                    "iri": {
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "type": {
                        "type": "string"
                    },
                    "value": {
                        "type": "string"
                    }
                },
                "required": [
                    "type",
                    "value"
                ],
                "type": "object"
            },
            "type": "array"
        },
        "attributesPre": {
            "description": "The attribute to update, with it's type, value and iri. This need to match the sample in order for the curation to be applied",
            "items": {
                "additionalProperties": false,
                "description": "Define the way attributes are described in a curation object",
                "properties": {
                    "iri": {
                        "items": {
                            "type": "string"
                        },
                        "type": "array"
                    },
                    "type": {
                        "type": "string"
                    },
                    "value": {
                        "type": "string"
                    }
                },
                "required": [
                    "type",
                    "value"
                ],
                "type": "object"
            },
            "type": "array"
        },
        "externalReferencesPost": {
            "description": "The updated value for the external reference",
            "items": {
                "additionalProperties": false,
                "properties": {
                    "url": {
                        "type": "string"
                    }
                },
                "required": [
                    "url"
                ],
                "type": "object"
            },
            "type": "array"
        },
        "externalReferencesPre": {
            "description": "The external reference to update",
            "items": {
                "additionalProperties": false,
                "properties": {
                    "url": {
                        "type": "string"
                    }
                },
                "required": [
                    "url"
                ],
                "type": "object"
            },
            "type": "array"
        }
    },
    "required": [
        "attributesPre",
        "attributesPost",
        "externalReferencesPre",
        "externalReferencesPost"
    ],
    "title": "BioSamples curation object",
    "type": "object"
}