{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "additionalProperties": false,
    "properties": {
        "availability": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
        },
        "dayRate": {
            "pattern": "^\\d{1,15}(?:\\.\\d{1,5})?$",
            "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",
        "dayRate",
        "essentialRequirements",
        "essentialRequirementsMet",
        "respondToEmailAddress"
    ],
    "title": "Digital Outcomes and Specialists 4 Digital specialists Brief Response Schema",
    "type": "object"
}