We have a lot of utility functions to help us figure out the various types from models and extract information from them. A lot of this is now included in type-lens, so we should be switching to using that instead.
cc: @peterschutt
Basic Example
No response
Drawbacks and Impact
I'm not sure if there's an easy way to do this without making breaking changes. There may be, but I am inclined to make the breaking changes regadlless. I don't think it would effect users too much since most likely it would only change things like FieldModel and some other stuff that polyfactory which, while technically public API, are probably not used by many users.
Summary
We have a lot of utility functions to help us figure out the various types from models and extract information from them. A lot of this is now included in type-lens, so we should be switching to using that instead.
cc: @peterschutt
Basic Example
No response
Drawbacks and Impact
I'm not sure if there's an easy way to do this without making breaking changes. There may be, but I am inclined to make the breaking changes regadlless. I don't think it would effect users too much since most likely it would only change things like
FieldModel
and some other stuff that polyfactory which, while technically public API, are probably not used by many users.Unresolved questions
No response