FirebaseExtended / protobuf-rules-gen

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.
Apache License 2.0
197 stars 13 forks source link

Timestamp support #19

Closed k0ff33 closed 6 years ago

k0ff33 commented 6 years ago

// TODO(rockwotj): Support timestamps

Timestamp support would be very much appreciated. At the moment it's one of the basic types missing.

rockwotj commented 6 years ago

WDYT about making this be the google.protobuf.Timestamp message?

This would end up being:

message Example {
  google.protobuf.Timestamp ts = 1;
}

Then this would end up being a check for ts is timestamp

k0ff33 commented 6 years ago

Makes perfect sense to me.

adamduren commented 6 years ago

I'm interested in this library as well. Any progress here?

rockwotj commented 6 years ago

Have a PR open in #22

rockwotj commented 6 years ago

Created a new release for darwin with these changes. Should have a linux release done Monday when I'm at my Linux machine.