This is an experimental protoc plugin that generates Firebase Rules for Cloud Firestore based on Google's Protocol Buffer format. This allows you to easily validate your data in a platform independent manner.
I'm wondering if it's possible to specify a property to have multiple accepted types. In my case I need to allow both int32 and float types because of the way how JS treats numbers in general.
When writing security rules manually I was doing a simple OR like:
&& (resource.weight is float || resource.weight is int)
But I guess that's not possible (yet) in the plugin?
I'm wondering if it's possible to specify a property to have multiple accepted types. In my case I need to allow both int32 and float types because of the way how JS treats numbers in general.
When writing security rules manually I was doing a simple OR like:
&& (resource.weight is float || resource.weight is int)
But I guess that's not possible (yet) in the plugin?