This release addresses the `ValidationError` caused by the HTTPX backend when receiving a non-valid JSON response. The `ValidationError` is no longer raised, and the new `Content` type alias is introduced:
python
from combadge.support.http.aliases import Content
class ModelA(BaseModel):
my_content: Content[bytes] captures raw response content
class ModelB(BaseModel):
my_content: Content[Literal[b"I am your father"]] matches the content to the literal
What's Changed
⚡️Improvements
* NEW: add the `__content__` pseudo-field, resolves 15 by eigenein in https://github.com/kpn/combadge/pull/16
* OPT: add the type assertions 13 by eigenein in https://github.com/kpn/combadge/pull/17
**Full Changelog**: https://github.com/kpn/combadge/compare/0.1.0rc1...0.1.0rc2