generate_mock_from_spec
Generate mock response data from an OpenAPI spec. Uses examples, defaults, formats, and type heuristics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Target path (optional; generates all if omitted) | |
| spec | Yes | OpenAPI spec JSON object | |
| method | No | HTTP method (used with path) | |
| statusCode | No | Response status code (default: 200) | 200 |