Specmatic Specification-driven API contracts, mocks and compatibility checks with open-source and Enterprise editions.
Overview 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.[2] [3]
Contents 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.[2]
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.[4]
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.[3]
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.[1] [3] [4]
Substitution scope Specmatic can substitute for Pact JS 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.[2] [5] [6]
Also included: 3 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.