-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new lines and comments in rules.json #30
Comments
I wasn't actually aware that Firebase permits deviations from conventional On Tue, Jun 14, 2016 at 5:43 AM Sebastian Ovide [email protected]
|
Here are a few examples that I have seen in valid security rules.
|
@sebastianovide You can get a better dev experience using the Firebase Bolt Compiler, there's a SublimeText bundle you can use in IDEA too for syntax highlighting. I've found it makes it a bit easier to work with complex rules. |
AFAIK it only affected the CLI (and support for comments is implemented in v2.2.0). When using the API (i.e |
AFAIK there's no node parser that support both comments and new lines in json string and writing a JSON parser is out of the scope of this project at this point. If there's a parser available that support the same features than Firebase, fell free to reopen this issue. |
targaryen cli now load rules using firebase-json which support comments and multi lines string. Fix goldibex#30
Hi all,
we are evaluating how to test firebase rules and this seems to be the only real solution. Our rules.json is getting big, and to keep things clear we add comments and new lines using the same syntax accepted by firebase. Nevertheless targaryen complains about the json format. It doesn't like new lines nor comments in the json.
(Of course I could clean up the file before using targaryen.)
Is there any plans to support new lines and comments ?
thanks
The text was updated successfully, but these errors were encountered: