{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Contains answers to a question to be verified by the test suite",
    "properties": {
        "answer_response": {
            "description": "Answer or answers to be verified",
            "oneOf": [
                {
                    "description": "Multi choice response",
                    "examples": [
                        [
                            "answer_1",
                            "answer_3"
                        ]
                    ],
                    "items": {
                        "type": "string"
                    },
                    "type": "array"
                },
                {
                    "description": "Single choice response",
                    "type": "string"
                },
                {
                    "description": "Action response",
                    "type": "null"
                }
            ]
        },
        "question_id": {
            "anyOf": [
                {
                    "description": "Identifier for messages sent at the beginning and end of every set of tests",
                    "enum": [
                        "pre_tests_message",
                        "post_tests_message"
                    ],
                    "type": "string"
                },
                {
                    "description": "Identifier for questions within a test",
                    "pattern": "^test_[0-9a-z_]+$",
                    "type": "string"
                }
            ],
            "description": "The question_id as received on Question API"
        }
    },
    "required": [
        "question_id",
        "answer_response"
    ],
    "title": "Controller Testing - POST request to testing tool",
    "type": "object"
}
