{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "PersistentVolume",
    "description": "This describes a requirement for persistent, read-only or read-write storage that should be available to the containerapp on runtime. The name of this object MUST be 'persistentVolume'",
    "type": "object",
    "properties": {
        "persistentVolume": {
            "type": "object",
            "required": [
                "name",
                "accessMode",
                "size"
            ],
            "properties": {
                "name": {
                    "description": "A name associated with the storage requirement.",
                    "type": "string",
                    "default": "null"
                },
                "accessMode": {
                    "description": "Access mode in which the persitent volume will be available",
                    "type": "string",
                    "enum": [
                        "ReadWrite",
                        "ReadOnly"
                    ]
                },
                "size": {
                    "description": "Size of the required storage.",
                    "type": "number",
                    "minimum": 0
                }
            }
        }
    },
    "additionalProperties": false
}