Schemathesis
$ schemathesis Community Med Riskschemathesis automatically generates Hypothesis-powered edge-case requests from OpenAPI and GraphQL schemas to uncover 500 errors and contract violations. Supports --checks all, --report json,junit, --max-examples, and --no-color for deterministic CI and agent verification.
brew install schemathesis Property-based API fuzzer driven by OpenAPI/GraphQL schemas; executes hundreds of generated HTTP test cases locally.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Headless execution with --report json,junit, --no-color, --include-method scoping, and reproducible --seed values.
- Structured
--report json/ndjson/junitexports - Operation filters (
--include-method,--include-path)
Fuzzing sends randomized payloads to POST/PUT/DELETE endpoints by default unless constrained via --include-method GET; v4 removed --dry-run.
- Mutating HTTP methods fuzzed unless explicitly filtered
- Legacy
--dry-runflag removed in Schemathesis v4
Available via Homebrew, pip, and uvx across macOS, Linux, and Windows (plus Docker images).
- Cross-platform Python package and Homebrew formula
Finds edge-case crashes and schema drift automatically from OpenAPI/GraphQL without hand-written tests.
- Stateful and property-based fuzzing via Hypothesis
Actively maintained by the Schemathesis team (schemathesis/schemathesis) under MIT license.
- Rapid active development and v4 releases
Thorough documentation covering CLI options, checks, and reports, plus crisp --help.
- Detailed CLI guide on Read the Docs
Security, Auth & Guardrails
No built-in credential store; pass API tokens via --header "Authorization: Bearer ..." or --auth.
MIT open-source Python CLI; free.
# Schemathesis Agent Rules - Restrict read-only probes with `--include-method GET` when testing shared environments. - Never run full fuzzing (`POST`/`DELETE`) against production APIs—only target `localhost` or disposable test environments. - Always pass `--no-color` and `--report json --report-json-path <file>` when parsing failures.
Agent-Ready Command Recipes
Safe Read-Only Queries
schemathesis run --include-method GET --checks all --max-examples 20 --no-color http://127.0.0.1:8000/openapi.json
Limits property-based fuzzing to read-only GET operations with 20 examples per operation.
Controlled Writes & Previews
schemathesis run --checks all --report json,junit --report-json-path report.json --report-junit-path junit.xml --no-color http://127.0.0.1:8000/openapi.json
Tests all schema endpoints including mutations against a local test instance and exports JSON and JUnit reports.
Strengths for Agents
- + Automatically fuzzes OpenAPI and GraphQL specs to uncover 5xx crashes and schema mismatches.
- + Rich filtering (
--include-method,--include-path) and--report json,junitoutput. - + Reproducible seeds (
--seed) allow deterministic regression re-runs.
Caveats & Pitfalls
- ! Fuzzes mutating endpoints (
POST,DELETE) by default unless scoped toGET. - ! Schemathesis v4 removed
--dry-run, so requests are always dispatched unless filtered.