plank
plank copied to clipboard
Grouping of multiple models for ADT
Let's say I have a set of N models, and they all have optional array
s that all can contain the same types of models. Right now I have to duplicate all of the oneOf
declarations in each schema, and duplicate the match
ing code for each of the N models.
I wish there was a way to group multiple models for ADT, then we can also keep all the logic for serializing/match
ing these models in one place to remove the duped code.