stories icon indicating copy to clipboard operation
stories copied to clipboard

Do not reinvent DTOs with State object.

Open proofit404 opened this issue 3 years ago • 0 comments

Remove State, Argument, and Variable objects.

In all documentation examples use https://docs.python.org/3/library/types.html#types.SimpleNamespace instead.

Write documentation page how to use attrs and pydantic as DTOs with validation.

Field with init=False is a variable. Field with converter=DomainEntity, validator=TrafaretMapping is a contract.

Union features would be a separated library with attrs and pydantic libraries support.

proofit404 avatar Nov 05 '22 14:11 proofit404