You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the current generated code for proto enums and the lack of ScalaPB options to customize them, it's impossible to generically encode PGV enum rules as compile-time constraints.
Given the current generated code for proto enums and the lack of ScalaPB options to customize them, it's impossible to generically encode PGV enum rules as compile-time constraints.
(validate.rules).enum.defined_only
(validate.rules).enum.const
(validate.rules).enum.in
/(validate.rules).enum.not_in
(1) would be fairly simple to implement via something similar to #62
(2) is complex as it would require a generic solution for capturing constants (and pass them as string litterals?)
(3) has the same challenges as (2) and would require a generalized version of (1)
The text was updated successfully, but these errors were encountered: