WireMock Deliberately Ignores OpenAPI Specs, Requires Manual Stub Files
WireMock, a widely used mock server tool, does not natively import OpenAPI specifications — a design choice, not a bug. When an OpenAPI file is placed in WireMock's mappings directory, the server either ignores it or throws an error citing an unrecognized field. The feature has been a community request since at least August 2018, but WireMock's creator confirmed there were no plans to open-source the implementation, keeping it exclusive to the paid WireMock Cloud tier. Instead, WireMock requires one JSON stub file per API operation, meaning a 53-operation API like Twilio Verify demands 53 separate files. This approach also creates a maintenance burden, as the spec and stubs become two independent sources of truth that can drift out of sync over time.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in