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
I've been trying to figure it out and I've been through a few iterations and the documentation isn't really offering me much insight into how to do it.
Essentially I want a list type to allow data input from a number of predefined models, I've tried using UnionType, subclassing my models and using PolyModelType, and using MultiType. I'm not sure what I'm doing wrong but I'd just like to be able to give a complex data structure to a base model and have all the different lists of data validated.
The text was updated successfully, but these errors were encountered:
From what I can tell looking into it; UnionType is what I should be using but the conversions from ModelTypes regularly end up in DataErrors for rogue fields, really these rogue fields should be returning a ConversionError at a glance?
I've been trying to figure it out and I've been through a few iterations and the documentation isn't really offering me much insight into how to do it.
Essentially I want a list type to allow data input from a number of predefined models, I've tried using UnionType, subclassing my models and using PolyModelType, and using MultiType. I'm not sure what I'm doing wrong but I'd just like to be able to give a complex data structure to a base model and have all the different lists of data validated.
The text was updated successfully, but these errors were encountered: