Documentation
Parity compares how two versions of an API behave. These pages describe what the CLI does today (v0.1.0, pre-release); every command and configuration key is checked against the source.
New here? Start with the five-minute quickstart.
Get started
Install the CLI and run a first comparison.
- QuickstartCompare two versions of the Shop API example, read the result, find the seeded regression and open the HTML report — in about five minutes.
- InstallationBuild the Parity CLI from source, verify it, update it, and the environment variables it reads.
- The Shop API exampleThe example service in the repository, every difference seeded into its candidate build, and the scenario that finds each one.
Scenarios
Where requests come from and how responses are compared.
- ConfigurationComplete reference for parity.yaml — every key, its type and default — plus environment interpolation, per-source rules and the flags that override the file.
- Comparison rulesExactly how two responses are compared — status, headers, JSON bodies, arrays, numbers, null versus missing, correlated identifiers — and what each outcome and reason code means.
- OpenAPI generationHow Parity turns an OpenAPI 3 document into single-request scenarios — what is generated for each variation kind, how the set is bounded and seeded, and what it cannot cover.
- WorkflowsStateful multi-step scenarios in YAML — variables, extraction, expectations, assertions, setup and teardown — plus manual request files and Postman import.
Automation
Run Parity on every pull request and read its reports.
- GitHub ActionsRun Parity on every pull request — the action's inputs and outputs, a complete workflow that starts base and head, the job summary, artifacts, exit codes and branch protection.
- Other CI systemsRun Parity non-interactively in any pipeline — the flags for automation, machine-readable outputs, policies and the exit code table.
- ReportsThe report formats Parity writes — JSON, HTML, JUnit, Markdown and terminal — an overview of the parity.report/v1 schema, and the report and upload commands.
Hosted workspace
Optional run history and review on top of the CLI.
Reference
Security, data handling, troubleshooting and API reference.
- Security and data handlingWhere Parity runs, what leaves your machine, how reports are redacted, how mutating requests are guarded, and what the optional hosted workspace stores.
- TroubleshootingReal failure modes and the messages Parity prints for them — everything unchanged, everything inconclusive, blocked mutations, refused connections, noisy fields, flagged IDs and configuration errors.
- Hosted APIEndpoints, authentication, adapters and their environment variables, limits, errors, migrations, scheduled work and webhooks of the Parity hosted backend.
- Architecture and decisionsHow Parity is put together, the decisions behind it, and the assumptions that were made along the way.
A plain-text index for language models is at /llms.txt.