Releases: kpn/combadge
Releases · kpn/combadge
0.1.0rc4
What's Changed
🐛 Fixes
- FIX: pass headers for async request definitions by @beerdeaap in #21
Full Changelog: 0.1.0rc3...0.1.0rc4
0.1.0rc3
What's Changed
🐛 Fixes
- FIX: support header annotation in service definition by @beerdeaap in #20
👋 New Contributors
- @beerdeaap made their first contribution in #20
Full Changelog: 0.1.0rc2...0.1.0rc3
0.1.0rc2
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:
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 #16 - OPT: add the type assertions #13 by @eigenein in #17
Full Changelog: 0.1.0rc1...0.1.0rc2