# Specmatic

Specification\-driven API contracts, mocks and compatibility checks with open\-source and Enterprise editions\.

ID: Q886 · Revision: 934

Type: software · License: MIT core; commercial Enterprise extensions[^specmatic-license][^specmatic-editions] · Status: active

Website: https://specmatic.io/



Specmatic turns API specifications into executable contracts for testing and service simulation\. Its open\-source core and commercial offerings use specifications as shared inputs for provider checks, mock behavior and compatibility analysis, with protocol coverage varying by edition\.[^specmatic-model][^specmatic-editions]

## Specification\-driven development

The workflow starts from an API definition rather than a collection of consumer\-generated interaction files\. Specmatic uses that definition to test an implementation and to provide mock services for dependent applications\. Expectations supplied to a mock are checked against the contract, helping reveal divergence between examples and the agreed interface\. The approach relies on keeping the specification meaningful as the implementation evolves\.[^specmatic-model]

## Checking changes at different levels

Specmatic distinguishes interface compatibility between specification versions from example validation and tests against the real implementation\. Its described interface check uses a mock from the newer specification with tests derived from the older one\. Passing that comparison is therefore different from demonstrating that deployed code honors the specification\. Examples and implementation\-level checks provide additional evidence rather than being implied by a schema comparison\.[^specmatic-compat]

## Protocol and capability boundaries

The current edition comparison lists OpenAPI/REST, WSDL/SOAP and MCP in the free open\-source offering\. AsyncAPI, GraphQL, gRPC and Arazzo workflows are among the Enterprise additions\. It also distinguishes basic same\-spec OpenAPI workflows from broader cross\-spec orchestration\. A marketing list of supported protocols should consequently be read together with edition information rather than assumed to describe the MIT\-licensed core alone\.[^specmatic-editions]

## Licensing and output

The inspected core repository carries MIT terms\. Commercial extensions and related authoring or governance products remain separate offerings\. The backward\-compatibility documentation identifies an HTML report in the open\-source version, while its additional JSON CTRF output for governance is an Enterprise capability\. Teams comparing tools should check both the required protocol and the report format consumed by their pipeline\.[^specmatic-license][^specmatic-editions][^specmatic-compat]

## Substitution scope

Specmatic can substitute for [Pact JS](/pactjs) for API compatibility testing when a specification\-first workflow is preferable to JavaScript consumer\-authored examples\. The tradeoff changes the source of the contract: Pact tests capture what consumer code actually expects, whereas Specmatic derives tests and mocks from a maintained specification\. No direct Pact\-file conversion or equivalent behavioral coverage is established here\. Consumer assumptions that are absent from the specification still need explicit validation\.[^specmatic-model][^pact-intro][^pact-consumer]

## Capabilities and substitutions

### Specification\-driven mocks and tests — supported

Reuses API definitions for implementation checks and contract\-validated mock expectations\.[^specmatic-model]

Use case: Specification\-driven API compatibility testing · Platforms: JVM tooling, Docker, CI pipelines · Region: Version, plan and platform requirements apply

### Cross\-protocol open\-source coverage — limited

OSS supports selected protocols; GraphQL, gRPC, AsyncAPI and Arazzo are edition\-dependent\.[^specmatic-editions]

Use case: Specification\-driven API compatibility testing · Platforms: JVM tooling, Docker, CI pipelines · Region: Version, plan and platform requirements apply

### Specification compatibility checks — supported

Compares interfaces across versions; real implementation tests are a separate layer\.[^specmatic-compat]

Use case: Specification\-driven API compatibility testing · Platforms: JVM tooling, Docker, CI pipelines · Region: Version, plan and platform requirements apply

### [Substitute for Pact JS](/pactjs) — limited

Can replace interface\-compatibility workflows with specification\-derived tests and mocks; consumer\-example coverage and contract formats differ\.[^specmatic-model][^pact-intro]

Use case: Specification\-driven API compatibility testing · Platforms: JVM tooling, Docker, CI pipelines · Region: Version, plan and platform requirements apply

## References

[^specmatic-license]: [Specmatic core license](<https://github.com/specmatic/specmatic/blob/main/License.md>) — MIT terms (vendor; retrieved 2026-10-07T11:14:58Z)

[^specmatic-model]: [Specmatic spec\-driven development](<https://docs.specmatic.io/contract_driven_development>) — Executable specifications and mock validation (vendor; retrieved 2026-10-07T11:14:19Z)

[^specmatic-editions]: [Specmatic editions comparison](<https://docs.specmatic.io/references/open-source-vs-enterprise>) — OSS protocol scope and commercial extensions (vendor; retrieved 2026-10-07T11:14:19Z)

[^specmatic-compat]: [Specmatic backward compatibility](<https://docs.specmatic.io/spec_driven_api_development/backward_compatibility>) — Interface checks, example validation and implementation tests (vendor; retrieved 2026-10-07T11:14:58Z)

[^pact-intro]: [Pact introduction](<https://docs.pact.io/>) — Consumer\-driven contracts by example (vendor; retrieved 2026-10-07T11:14:10Z)

[^pact-consumer]: [Writing Pact consumer tests](<https://docs.pact.io/consumer>) — Exercise actual consumer logic rather than mock\-only calls (vendor; retrieved 2026-10-07T11:14:10Z)

Source revision: https://substitutefor.net/entities/Q886?revision=934
