{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "GetPermissionGrantWrapper",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "permissions": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/PermissionGrant"
            },
            "description": "A list containing all the permissions."
        }
    },
    "definitions": {
        "PermissionGrant": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "username": {
                    "type": "string",
                    "description": "Name of the user to grant the accessLevel to."
                },
                "accessLevel": {
                    "type": "string",
                    "enum": [
                        "NONE",
                        "READ",
                        "WRITE",
                        "ADMIN"
                    ],
                    "description": "Type of permission to grant access to"
                }
            }
        }
    },
    "javaName": "GetPermissionGrantWrapper"
}