Key Changes
Schemathesis v4.21.0, released on 2026-05-31, brings targeted improvements for API and Mobile Testing.
New Features: GraphQL testing gains the ability to chain operations using non-id identifiers like fullPath or slug during stateful and fuzzing phases. This allows for more realistic and complex GraphQL test scenarios.
Performance Enhancements: This release delivers substantial speed and memory optimizations. Schemas with very large maxLength or maxItems now experience much lower peak memory usage and faster validation. Failed validator builds are cached, preventing redundant recompilations. The hypothesis-graphql update to 0.13.0 provides up to 180x performance gains for deeply nested GraphQL schemas. Stateful runs also benefit from lower memory usage and faster state machine construction.
Bug Fixes: Several critical issues in stateful testing have been addressed. This includes fixing excessive re-runs against APIs with mutable state and preventing stateful testing from restarting due to single transient transport failures. Semantic value substitution no longer overwrites const or enum fields with invalid data, ensuring test accuracy.
Minor Changes: The tool now mines additionalProperties: false from Pydantic extra_forbidden errors, improving schema interpretation.
For full details, refer to the official Schemathesis v4.21.0 release notes.
Impact for QA Teams
QA engineers will find Schemathesis v4.21.0 offers more efficient and reliable API testing, especially for GraphQL APIs. The performance boosts reduce test execution times and resource consumption, while stability fixes improve the consistency of stateful tests. These updates enable more thorough and faster validation of complex API behaviors.
