At the moment, we simply assign the value:
|
def __call__(self, request: ContainsPayload, value: Any) -> None: # noqa: D102 |
|
if request.payload is None: |
|
request.payload = {} |
|
request.payload[self.name] = value.value if isinstance(value, Enum) else value |
- Should we maybe serialize
value as well?
- If yes, should we also deal with the code duplication across
Payload, Field, FormData, and FormField?
At the moment, we simply assign the value:
combadge/combadge/support/http/markers/request.py
Lines 211 to 214 in 8b60b1b
valueas well?Payload,Field,FormData, andFormField?