Generates handlers that answer with faker.js data shaped by each response schema.
export default defineConfig({ input: 'openapi.yaml', mock: { output: './src/mock.ts', }, })
Pick another declared response with the Prefer header:
Prefer
curl -H 'Prefer: code=404' http://localhost:3000/orders/1