{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$id": "#DataObject",
    "description": "An individual data object, such as an aws-s3-object, sharepoint-document, source-code, or a file (on disk). The exact data type is described in the _type property of the Entity.",
    "type": "object",
    "allOf": [
        {
            "$ref": "#Entity"
        },
        {
            "properties": {
                "category": {
                    "description": "A user-provided category of the data, such as 'Source Code', 'Report', 'Patent Application', 'Business Plan', 'Customer Record', 'Genetic Data', etc.",
                    "type": "string"
                },
                "format": {
                    "description": "The format of the data, such as 'document', 'raw', 'plaintext', 'binary', etc.",
                    "type": "string"
                },
                "location": {
                    "description": "URI to the data, e.g. file path",
                    "type": "string"
                },
                "PII": {
                    "description": "Indicates if this data object is or contains Personally Identifiable Information",
                    "type": "boolean"
                },
                "PHI": {
                    "description": "Indicates if this data object is or contains Protected Health Information",
                    "type": "boolean"
                },
                "PCI": {
                    "description": "Indicates if this data object is or contains Payment Card Information",
                    "type": "boolean"
                },
                "encryptionRequired": {
                    "description": "If the data needs to be encrypted",
                    "type": "boolean"
                },
                "encrypted": {
                    "description": "If the data is encrypted",
                    "type": "boolean"
                },
                "public": {
                    "description": "Indicates if the data object is open to public access",
                    "type": "boolean"
                }
            },
            "required": ["classification"]
        }
    ]
}
