A VS Code extension that reads OpenAPI and Swagger spec files to auto-generate contract test suites and mock API servers. Validates API responses against schema definitions in real-time, catches breaking changes before deployment, generates Postman collections from spec files, and spins up a local m
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
VS Code Extension: API Contract Testing and Mock Server Generator
A VS Code extension that reads OpenAPI and Swagger spec files to auto-generate contract test suites and mock API servers. Validates API responses against schema definitions in real-time, catches breaking changes before deployment, generates Postman collections from spec files, and spins up a local mock server on any port for frontend development without a live backend. Supports OpenAPI 3.0 and 3.1 with YAML and JSON formats.
Features
Core functionality
Installation
From VS Code Marketplace
Open VS Code
Press Ctrl+P (or Cmd+P on Mac)
Type ext install digitalforge.515f177e
Press Enter
From VSIX file
Download the .vsix file
In VS Code: Extensions > ··· > Install from VSIX
Select the downloaded file
Usage
Press Ctrl+Shift+P and search for VS Code Extension: API Contract Testing and Mock Server Generator to see all available commands.
Keyboard shortcut:Ctrl+Shift+Alt+A (or Cmd+Shift+Alt+A on Mac)