-
-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels