Run the Contracteer verifier or mock server, or check an OpenAPI document, from the command line. Works with any language or stack -- no JVM required.
brew install contracteer-dev/contracteer/contracteerOr download the archive for your platform from the latest release.
Verify a running server:
contracteer verify openapi.yamlStart a mock server:
contracteer mock openapi.yamlCheck an OpenAPI document without a server:
contracteer lint openapi.yamlThe OpenAPI document can be a local file path or an HTTP(S) URL.
See Use the CLI for the full guide -- all options, example output, mock server behavior, and a try-it-now example.
The CLI ships as a GraalVM native image. swagger-parser resolves OpenAPI 3.1 documents through Jackson
reflection, so src/main/resources/META-INF/native-image/reflect-config.json registers every class of
io.swagger.v3.oas.models, the swagger-core Jackson mixins, and the serializers those mixins reference.
Regenerate that list whenever the swagger-parser version changes.