-
-
Notifications
You must be signed in to change notification settings - Fork 293
Closed
Labels
Description
Would it make sense for the JSON parser to complain if multiple fields of a oneof are defined?
Or maybe the compiler could be configured to generate code (a Reads[T]) that complains if the oneof is oversubscribed?
I looked into passing a custom formatter via .registerMessageFormatter to gain access to the e.g. JValue before passing it along to the default parser, but I don't have access to a default parser, and I don't want to have to specify a writer as well.
I may be able to take a pass at it if this could be helpful to others or if there's a suggested way to handle this.