Response¶
Response markers are used to transform a response payload prior to passing it into a final response model.
Map
dataclass
¶
Map a payload to a dictionary under the specified key.
Source code in combadge/core/markers/response.py
Extract
dataclass
¶
Extract a value from the specified key.
Source code in combadge/core/markers/response.py
Mixin
dataclass
¶
Mix in the inner marker outputs to the payload.
Source code in combadge/core/markers/response.py
__init__ ¶
Initialize the marker.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
*inner
|
ResponseMarker
|
inner markers to apply to a payload |
()
|