{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
        "availability": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
        },
        "essentialRequirements": {
            "items": {
                "additionalProperties": false,
                "properties": {
                    "evidence": {
                        "minLength": 1,
                        "pattern": "^(?:\\S+\\s+){0,99}\\S+$",
                        "type": "string"
                    }
                },
                "required": [
                    "evidence"
                ],
                "type": "object"
            },
            "minItems": 1,
            "type": "array"
        },
        "essentialRequirementsMet": {
            "enum": [
                true
            ]
        },
        "niceToHaveRequirements": {
            "items": {
                "additionalProperties": false,
                "allOf": [
                    {
                        "oneOf": [
                            {
                                "properties": {
                                    "evidence": {
                                        "type": "null"
                                    },
                                    "yesNo": {
                                        "enum": [
                                            false
                                        ]
                                    }
                                }
                            },
                            {
                                "properties": {
                                    "yesNo": {
                                        "enum": [
                                            true
                                        ]
                                    }
                                },
                                "required": [
                                    "yesNo",
                                    "evidence"
                                ]
                            }
                        ]
                    }
                ],
                "properties": {
                    "evidence": {
                        "minLength": 1,
                        "pattern": "^(?:\\S+\\s+){0,99}\\S+$",
                        "type": "string"
                    },
                    "yesNo": {
                        "type": "boolean"
                    }
                },
                "required": [
                    "yesNo"
                ],
                "type": "object"
            },
            "minItems": 0,
            "type": "array"
        },
        "respondToEmailAddress": {
            "_format": "email",
            "minLength": 1,
            "type": "string"
        }
    },
    "required": [
        "availability",
        "essentialRequirements",
        "essentialRequirementsMet",
        "respondToEmailAddress"
    ],
    "title": "Digital Outcomes and Specialists 4 User research participants Brief Response Schema",
    "type": "object"
}