Skip to content

Instantly share code, notes, and snippets.

@Yatima-Kagurazaka
Last active September 27, 2017 12:53
Show Gist options
  • Save Yatima-Kagurazaka/061e8730b95c98e4e8bb16decceb6f4a to your computer and use it in GitHub Desktop.
Save Yatima-Kagurazaka/061e8730b95c98e4e8bb16decceb6f4a to your computer and use it in GitHub Desktop.
(consistency)
{
"rules": {
"test": {
"test": {
".write": "true",
"foo": {
".validate": "newData.isString()",
},
"bar": {
".validate": "newData.val() == newData.parent().child('foo').val()",
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment