plank icon indicating copy to clipboard operation
plank copied to clipboard

Grouping of multiple models for ADT

Open connor opened this issue 7 years ago • 0 comments

Let's say I have a set of N models, and they all have optional arrays 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 matching 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/matching these models in one place to remove the duped code.

connor avatar Mar 14 '17 16:03 connor