{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "GetProjectResponse",
    "type": "object",
    "additionalProperties": false,
    "properties": {
        "name": {
            "type": "string",
            "description": "Name of the project."
        },
        "repos": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/RepoDefinitionsDetails"
            },
            "description": "List of repos attached to the project."
        },
        "permissions": {
            "type": "array",
            "items": {
                "$ref": "#/definitions/PermissionGrant"
            }
        }
    },
    "definitions": {
        "RepoDefinitionsDetails": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
                "name": {
                    "type": "string",
                    "description": "Name of the project."
                }
            }
        },
        "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": "GetProjectResponse"
}