Skip to content

Releases: schemathesis/schemathesis

Release 3.28.1

11 May 17:45
v3.28.1
a8fb0b8
Compare
Choose a tag to compare

🐛 Fixed

  • Internal error on unresolvable Open API links during stateful testing.
  • Internal error when media type definition has only example or examples keys.

🏎️ Performance

  • Improve performance of add_link by avoiding unnecessary reference resolving.

Release 3.28.0

10 May 21:41
v3.28.0
e33fac8
Compare
Choose a tag to compare

I am happy to announce Schemathesis 3.28 🎉

It does not include a lot of new features but instead clarifies error messages and makes Schemathesis work with more recursive references than before.

🚀 Added

  • Request.deserialize_body and Response.deserialize_body helper methods to deserialize payloads to bytes from Base 64.
  • Support for multipart/mixed media type.

🔧 Changed

  • Do not show suggestions to show a traceback on Hypothesis' Unsatisfiable error.
  • Clarify error message on unsupported recursive references.
  • Report more details on some internal errors instead of "Unknown Schema Error".
  • Update error message on why Schemathesis can't generate test cases for some API operations.

🐛 Fixed

  • Internal error on Windows when the CLI output is redirected to a file and code samples contain non-CP1252 characters.
  • Properly check for nested recursive references inside combinators. This makes Schemathesis work with more schemas with recursive references.

Release 3.27.1

29 Apr 11:40
v3.27.1
8fbed5e
Compare
Choose a tag to compare

🚀 Added

  • GenerationConfig.headers.strategy attribute for customizing header generation. #2137
  • Support for python -m schemathesis.cli. #2142
  • Support for anyio>=4.0. #2081

🐛 Fixed

  • Supporting non-Starlette ASGI apps. #2136
  • Missing version metadata in ASGI client causing errors with ASGI3-only apps. #2136

Release 3.27.0

14 Apr 13:40
v3.27.0
6f07baa
Compare
Choose a tag to compare

The new release of Schemathesis introduces important changes for ASGI & WSGI applications. Now, you can use Case.call and Case.call_and_validate to run tests directly, replacing the previous separate methods for these application types (call_asgi / call_wsgi)

🚀 Added

  • Case.as_transport_kwargs method to simplify the creation of transport-specific keyword arguments for sending requests.

🔧 Changed

  • Make Case.call work with ASGI & WSGI applications.
  • Extend the JUnit XML report format to match CLI output including skipped tests, code samples, and more.

🗑️ Deprecated

  • Case.call_wsgi & Case.call_asgi in favor of Case.call.
  • Case.as_requests_kwargs & Case.as_werkzeug_kwargs in favor of Case.as_transport_kwargs.

Release 3.26.2

06 Apr 17:41
v3.26.2
9b145c9
Compare
Choose a tag to compare

🚀 Added

  • Support for pyrate-limiter>=3.0.

🐛 Fixed

  • Excluding \x00 bytes as a result of probes.

Release 3.26.1

04 Apr 09:01
v3.26.1
362d647
Compare
Choose a tag to compare

🚀 Added

  • Store time needed to generate each test case.

🐛 Fixed

  • InvalidArgument when using from_pytest_fixture with parametrized pytest fixtures and Hypothesis settings. #2115

Release 3.26.0

21 Mar 22:25
v3.26.0
de18a87
Compare
Choose a tag to compare

🚀 Added

  • Support for per-media type data generators. #962
  • Support for application/yaml & text/yml media types in YAMLSerializer.
  • EXPERIMENTAL: Run automatic schema optimization & format inference if CLI is authenticated in Schemathesis.io.

🐛 Fixed

  • Not resolving references in nested security schemes. #2073

🔧 Changed

  • Improve the error message when the minimum possible example is too large.

Release 3.25.6

01 Mar 23:52
v3.25.6
ad78a1f
Compare
Choose a tag to compare

🐛 Fixed

  • Not respecting allow_x00 and codec configs options while filling gaps in explicit examples.
  • Internal error when sending multipart/form-data requests when the schema defines the */* content type.
  • Internal error when YAML payload definition contains nested binary format.
  • Internal error when an Open API 2.0 schema contains no swagger key and the schema version is forced.

🔧 Changed

  • Indicate API probing results in CLI.

Release 3.25.5

29 Feb 13:36
v3.25.5
3de22bb
Compare
Choose a tag to compare

🐛 Fixed

  • Incorrect error message when the code inside the hook module raises ImportError. #2074
  • Compatibility with Hypothesis >6.98.14
  • Not respecting allow_x00 and codec configs options for data generation in some cases. #2072

Release 3.25.4

25 Feb 16:31
v3.25.4
969a28b
Compare
Choose a tag to compare

🔧 Changed

  • Improve error message when the minimum possible example is too large.