{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "$ref": "#/definitions/PCSResponse",
    "definitions": {
        "PCSResponse": {
            "type": "object",
            "properties": {
                "headers": {
                    "type": "object",
                    "properties": {
                        "set-cookie": {
                            "type": "array",
                            "items": {
                                "type": "string"
                            },
                            "description": "Should hold the PCS cookies"
                        }
                    }
                },
                "data": {
                    "type": "object",
                    "properties": {
                        "isWebAccessAllowed": {
                            "type": "boolean",
                            "const": true,
                            "description": "Needs to be yes, otherwise this tool will not work"
                        },
                        "message": {
                            "type": "string",
                            "minLength": 1
                        },
                        "status": {
                            "type": "string",
                            "enum": [
                                "success",
                                "failure"
                            ],
                            "description": "Status of the PCS request"
                        }
                    },
                    "required": [
                        "isWebAccessAllowed",
                        "message",
                        "status"
                    ]
                }
            },
            "required": [
                "headers",
                "data"
            ],
            "description": "The expected response when trying to acquire PCS cookies"
        }
    }
}
