Closed j4mie closed 2 months ago
Just calling out that this does change an internal API: previously, the serializer field was added to an attribute named out
, now we have a generic _readers_annotation
dictionary. This is undocumented behaviour so does not require a major version bump.
Fixes #98
This adds optional keyword arguments to the
out
object (when used as either a decorator or using the>>
approach) which are passed to the constructor of the serializer field. This provides a way to add useful attributes to the field (likelabel
andhelp_text
) without throwing away the automagic model introspection behaviour.Thanks @carltongibson for the API suggestion.