# Schemathesis

Schema\-driven API generation, fuzzing and stateful testing for OpenAPI and GraphQL\.

ID: Q545 · Revision: 592

Type: software · License: MIT[^schemathesis-license] · Status: active

Website: https://schemathesis.io/



Schemathesis is an MIT\-licensed API testing tool that generates requests from OpenAPI or GraphQL schemas\. It combines examples, schema coverage, fuzzing and linked request sequences to find server errors or mismatches between documented and actual API behavior\.[^schemathesis-readme][^schemathesis-cli]

## Capabilities and substitutions

### Schema\-driven generation — supported

Generates requests from OpenAPI and GraphQL and supports custom checks\.[^schemathesis-readme]

Use case: Schema\-based API conformance and robustness tests · Platforms: Python environments, CLI, CI pipelines · Region: Version, plan and platform requirements apply

### Stateful workflows — limited

Requires discoverable producer/consumer relationships; default runs may skip this phase\.[^schemathesis-stateful]

Use case: Schema\-based API conformance and robustness tests · Platforms: Python environments, CLI, CI pipelines · Region: Version, plan and platform requirements apply

### GraphQL constraint learning — unsupported

Documented runtime constraint\-learning loop currently applies to OpenAPI, not GraphQL\.[^schemathesis-adaptive]

Use case: Schema\-based API conformance and robustness tests · Platforms: Python environments, CLI, CI pipelines · Region: Version, plan and platform requirements apply

### [Substitute for Dredd](/dredd) — limited

Can replace OpenAPI conformance workflows with generated and stateful tests; API Blueprint inputs and Dredd hooks need a different migration path\.[^schemathesis-readme][^dredd-readme][^dredd-how]

Use case: Schema\-based API conformance and robustness tests · Platforms: Python environments, CLI, CI pipelines · Region: Version, plan and platform requirements apply

## References

[^schemathesis-license]: [Schemathesis license](<https://github.com/schemathesis/schemathesis/blob/master/LICENSE>) — MIT license (vendor; retrieved 2026-10-07T11:14:41Z)

[^schemathesis-readme]: [Schemathesis repository](<https://github.com/schemathesis/schemathesis/blob/master/README.md>) — Schema\-driven generation, CLI/Python use and reports (vendor; retrieved 2026-10-07T11:14:26Z)

[^schemathesis-cli]: [Schemathesis CLI tutorial](<https://schemathesis.readthedocs.io/en/stable/tutorials/cli/>) — Phases and max\-examples scope (vendor; retrieved 2026-10-07T11:14:10Z)

[^schemathesis-stateful]: [Schemathesis stateful testing](<https://schemathesis.readthedocs.io/en/stable/guides/stateful-testing/>) — Dependency discovery, CLI\-only Location inference and empty\-phase behavior (vendor; retrieved 2026-10-07T11:14:10Z)

[^schemathesis-adaptive]: [Schemathesis adaptive testing](<https://schemathesis.readthedocs.io/en/stable/explanations/adaptive-testing/>) — OpenAPI\-specific runtime constraint learning (vendor; retrieved 2026-10-07T11:14:10Z)

[^dredd-readme]: [Dredd supported formats](<https://github.com/apiaryio/dredd/blob/master/README.md>) — API Blueprint, OpenAPI 2 and experimental OpenAPI 3 (vendor; retrieved 2026-10-07T11:14:19Z)

[^dredd-how]: [Dredd execution and validation](<https://github.com/apiaryio/dredd/blob/master/docs/how-it-works.rst>) — Transactions, hooks, structure checks and empty\-body assertions (vendor; retrieved 2026-10-07T11:14:49Z)

[^dredd-archive]: [Apiary Dredd repository](<https://github.com/apiaryio/dredd>) — Archived November 2024 and legacy project scope (vendor; retrieved 2026-10-07T11:14:19Z)

Source revision: https://substitutefor.net/entities/Q545?revision=592
