We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6a2894 commit a406fc3Copy full SHA for a406fc3
test/test.js
@@ -241,6 +241,12 @@ export async function ${api.functionName}(${api.body ? `data: ${api.body.type}`
241
isGenJavaScript: true,
242
});
243
244
+ // 测试生成 response type comments
245
+ await openAPI.generateService({
246
+ schemaPath: `${__dirname}/example-files/openapi-response-desc.json`,
247
+ serversPath: './apis/openapi-response-desc',
248
+ });
249
+
250
// check 文件生成
251
const fileControllerStr = fs.readFileSync(
252
path.join(__dirname, 'apis/file/fileController.ts'),
0 commit comments