Open proofit404 opened 1 year ago
Remove State, Argument, and Variable objects.
State
Argument
Variable
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.
attrs
pydantic
Field with init=False is a variable. Field with converter=DomainEntity, validator=TrafaretMapping is a contract.
init=False
converter=DomainEntity, validator=TrafaretMapping
Union features would be a separated library with attrs and pydantic libraries support.
Union
Remove
State
,Argument
, andVariable
objects.In all documentation examples use https://docs.python.org/3/library/types.html#types.SimpleNamespace instead.
Write documentation page how to use
attrs
andpydantic
as DTOs with validation.Field with
init=False
is a variable. Field withconverter=DomainEntity, validator=TrafaretMapping
is a contract.Union
features would be a separated library withattrs
andpydantic
libraries support.