Your recent change to the TypeRegistry allowing polymorphism is a great addition, but we find its contraints a bit too limiting.
The current implementation requires types to be either abstract or interefaces in order to pick up derived types, but this is not always feasible. My suggestion is to introduce a HalibutPolymorphicAttribute and optionally HalibutDerivedTypeAttribute similar to how microsoft did it with System.Text.Json
Your recent change to the
TypeRegistry
allowing polymorphism is a great addition, but we find its contraints a bit too limiting.The current implementation requires types to be either
abstract
orinterefaces
in order to pick up derived types, but this is not always feasible. My suggestion is to introduce aHalibutPolymorphicAttribute
and optionallyHalibutDerivedTypeAttribute
similar to how microsoft did it with System.Text.Json