true, ".validate": "newData.isString() && newData.val().length < 100" } } Three basic rules .read → if and when data is allowed to be read by users. .write → if and when data is allowed to be written. .validate → Defines what a correctly formatted value.