Skip to content

Instantly share code, notes, and snippets.

@MarksCode
Created April 26, 2017 05:29
Show Gist options
  • Save MarksCode/e48e0ad1da36199d291ac43b04b8c2cc to your computer and use it in GitHub Desktop.
Save MarksCode/e48e0ad1da36199d291ac43b04b8c2cc to your computer and use it in GitHub Desktop.
Under my `"allUsers"` node I'm trying to only allow new data entries to have the following structure:
"allUsers" {
"$user1: {
"name": "user1Name"
"uid": "12345"
}
}
I don't want any other values besides `"name"` and `"uid"`. I added a `"other": { ".validate": false }` rule under each `$user`, but for some reason the following write is denied:
[![pic][1]][1]
Can anybody help me understand why the write fails even though I only have a name and uid in the data?
[1]: https://i.stack.imgur.com/bNS4C.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment