{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "Client Search Bar Admin Journey",
    "name": "ClientSearchBar",
    "description": "Definition of configuration for Admin Journey's search bar",
    "type": "object",
    "properties": {
        "ClientSearchBar": {
            "type": "object",
            "properties": {
                "email": {
                    "type": "object",
                    "properties": {
                        "hide": {
                            "type": "boolean"
                        }
                    },
                    "required": [
                        "hide"
                    ]
                },
                "phone": {
                    "type": "object",
                    "properties": {
                        "hide": {
                            "type": "boolean"
                        }
                    },
                    "required": [
                        "hide"
                    ]
                },
                "mobile": {
                    "type": "object",
                    "properties": {
                        "hide": {
                            "type": "boolean"
                        }
                    },
                    "required": [
                        "hide"
                    ]
                },
                "typeahead": {
                    "type": "object",
                    "properties": {
                        "minLength": {
                            "type": "number",
                            "description": "Minimal no of characters that needs to be entered before typeahead kicks-in. Must be greater than or equal to 0."
                        },
                        "waitTime" : {
                            "type": "number",
                            "description": "Minimal wait time in milliseconds after last character typed before typeahead kicks-in."
                        },
                        "focusFirst": {
                            "type": "boolean",
                            "description": "Should the first match automatically be focused as you type?"
                        },
                        "editable": {
                            "type": "boolean",
                            "description": "Should it restrict model values to the ones selected from the popup only?"
                        }
                    }
                },
                "showHelpText": {
                    "type": "boolean",
                    "description": "Display help text below search bar to add further description. By default describes the search behaviour after typing x characters as defined by 'minLength' config but is also a translated string so can be overriden"
                }
            },
            "required": [
                "email",
                "phone",
                "mobile"
            ]
        }
    },
    "required": [
        "ClientSearchBar"
    ]
}
