Skip to content

Releases: kpn/combadge

0.1.0rc4

17 Apr 10:41
Compare
Choose a tag to compare

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

14 Apr 15:09
0ea2d1f
Compare
Choose a tag to compare

What's Changed

🐛 Fixes

  • FIX: support header annotation in service definition by @beerdeaap in #20

👋 New Contributors

Full Changelog: 0.1.0rc2...0.1.0rc3

0.1.0rc2

31 Mar 15:06
Compare
Choose a tag to compare

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

Full Changelog: 0.1.0rc1...0.1.0rc2

0.1.0rc1

28 Mar 20:13
Compare
Choose a tag to compare

What's Changed

💥 Breaking changes

  • BREAK: move BaseBoundService to the separate module by @eigenein in #12

✨ New features

  • NEW: implement ServiceContainer, resolves #8 by @eigenein in #11
  • NEW: implement the context manager interfaces, resolves #7 by @eigenein in #14

Full Changelog: 0.1.0b9...0.1.0rc1

0.1.0b9

23 Mar 14:59
Compare
Choose a tag to compare

What's Changed

🍻 All changes

  • BREAK: pass bound arguments to MethodMarker.prepare_request(), resolves #9 by @eigenein in #10

Full Changelog: 0.1.0b8...0.1.0b9

0.1.0b8

21 Mar 12:28
Compare
Choose a tag to compare
  • c0f1e3b NEW: add the ErrorResponse.Error.response property

0.1.0b7

21 Mar 11:18
Compare
Choose a tag to compare
  • 1ff4f19 NEW: make an error response available through its derived exception instance

0.1.0b6

18 Mar 15:55
Compare
Choose a tag to compare
  • 04adffb BREAK: make the @validate_arguments optional
  • 8dec4d9 FIX: typo
  • 8a0fc10 OPT: protocol extensions should inherit from Protocol

0.1.0b5

16 Mar 14:46
Compare
Choose a tag to compare
  • d93329a BREAK: shorten the marker classes names and add by_alias and exclude_unset
  • de692d9 OPT: add the docstring

0.1.0b4

14 Mar 16:27
Compare
Choose a tag to compare
  • b917993 OPT: simplify preparing the JSON and form data
  • 0fa8196 FIX: copy JSON fields and form fields in HTTP request