I'm using Firebase to add Users. I also have a Newuser, which is an empty user that can be initialised using an id (the id's come from tags I already made).
Now when a newuser is initialised, Firebase should check if the given tagid is already used in the users table (as a key).
This is what my Users and NewUser data looks like;
This is the Firebase Rule I'm applying which is working in the simulator
{
"rules": {
".read": true,
".write": true,
"newuser": {
"tagid": {
".validate": "root.child('users/'+newData.val()).val() === null"
}
}
}
}
But for some reason I'm able to add this newuser record, using an existing tagid using the Firebase REST API. (with Postman)

