We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I wrote function with two arguments and in some cases I want to pass empty array into that function:
rules_version = '2'; service cloud.firestore { match /databases/{database}/documents { match /{document=**} { allow read, write: if false; } function validateDocument(requiredFields, optionalFields) { let allFields = requiredFields.concat(optionalFields) ; let fields = request.resource.data.keys() ; return fields.hasAll(requiredFields) && fields.hasOnly(allFields); } match /my-collections/{doc} { allow read: if true; allow write: if validateDocument(['foo', 'bar'], []); } } }
I see the following error in my IDE:
<expr> or '[' expected, got ']'
The text was updated successfully, but these errors were encountered:
Thanks for testing, issue will be fixed on version: 2.5.3
Sorry, something went wrong.
dalgarins
Successfully merging a pull request may close this issue.
I wrote function with two arguments and in some cases I want to pass empty array into that function:
I see the following error in my IDE:
<expr> or '[' expected, got ']'
The text was updated successfully, but these errors were encountered: