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
#100 (comment) shows one workaround right now but the problem with it is that it requires defining the metadata at the location where the class is used, not where the class is defined.
It would be preferable many times to define the metadata on the class itself.
This is a lot less error prone in situations where I know that the Child schema might evolve and I want to define directly on it the intent that I don't want my deserialization to break when new fields are added.
Arguably the proposed desert.meta is ambiguous with the existing desert.metadata API so open to suggestions on naming as well...
I'm happy to contribute a PR if I can get some confidence that this will be accepted design-wise.
The text was updated successfully, but these errors were encountered:
#100 (comment) shows one workaround right now but the problem with it is that it requires defining the metadata at the location where the class is used, not where the class is defined.
It would be preferable many times to define the metadata on the class itself.
This is a lot less error prone in situations where I know that the Child schema might evolve and I want to define directly on it the intent that I don't want my deserialization to break when new fields are added.
Arguably the proposed
desert.meta
is ambiguous with the existingdesert.metadata
API so open to suggestions on naming as well...I'm happy to contribute a PR if I can get some confidence that this will be accepted design-wise.
The text was updated successfully, but these errors were encountered: