pypi schemathesis 4.11.1
Release 4.11.1

6 hours ago

🚀 Added

  • Support filesystem paths for SCHEMATHESIS_HOOKS.

📝 Documentation

  • "Triaging Failures" guide.
  • "Docker" guide.

🐛 Fixed

  • Server-Sent Events: Ignore invalid retry field values.
  • Server-Sent Events: Treat empty event fields as message.
  • [auth.openapi.*] HTTP Basic authentication now correctly applied when using WSGI or ASGI apps in pytest mode. #3575
  • Misconfigured [auth.openapi.*] scheme names (e.g. typos) now emit a UserWarning in pytest mode, matching the existing CLI behavior. #3575
  • False positive negative_data_rejection for application/xml body string fields in the fuzzing phase due to type mutations producing wire-identical strings (e.g. False -> "False"). #3525
  • Internal ValueError when validating a response containing lone Unicode surrogate characters (e.g. \uDCF3); now reported as a JSON deserialization error since lone surrogates are invalid JSON per RFC 8259.
  • False positive negative_data_rejection for format: hostname in OpenAPI 3.0.x during the coverage phase. #3567
  • Schema at path in failure messages showing internal bundled form (e.g. /x-bundled/schema1/...) instead of the original schema path (e.g. /components/schemas/.../).
  • Missing positive test data for format: duration during the coverage phase.
  • Path generation now keeps explicit user-provided slash values (custom string formats, examples, and overrides) while still rejecting implicit and negative slash mutations to prevent misrouting. #3571
  • Warning count in the final summary line now reflects the number of distinct warning kinds shown, not just missing_auth operations.
  • False positive use_after_free when the server reuses freed resource IDs and a re-created resource is accessed in the same scenario. #3582
  • Correctly resolve $ref inside oneOf/anyOf sub-schemas during the coverage phase. #3584
  • pytest.from_fixture().exclude() (and .include()) intermittently failing with "does not match any API operations" on repeated runs when no [[operations]] are configured in schemathesis.toml. #3572

🔧 Changed

  • Set SCHEMATHESIS_HOOKS to /app/hooks.py in Docker images with a stub hooks file to simplify the UX.

Don't miss a new schemathesis release

NewReleases is sending notifications on new releases.