protojure / lib

A collection of libraries to support Protojure applications at runtime
https://protojure.readthedocs.io
Apache License 2.0
64 stars 14 forks source link

Prevent elision of empty (but not nil) messages #79

Closed sharrap closed 3 years ago

sharrap commented 3 years ago

Allows empty messages to be used as sentinel values inside oneof and for whatever other purposes people might want them for by semantically distinguishing them from nil/missing messages when encoding.

Resolves #78, which also goes into more detail about the rationale for this change.

ghaskins commented 3 years ago

Your fixes are available in v1.5.12

https://github.com/protojure/lib/releases/tag/v1.5.12 https://clojars.org/protojure/versions/1.5.12

Thank you!