chore: 更新版本号至 0.0.90,并在 toJSONSchemaRoute 函数中添加对返回值的处理

This commit is contained in:
2026-03-09 16:15:49 +08:00
parent 3c56849cfa
commit e4c2c0e1e6
2 changed files with 4 additions and 1 deletions

View File

@@ -271,6 +271,9 @@ const toJSONSchemaRoute = (route: RouteInfo) => {
if (pickValues?.metadata?.args) {
pickValues.metadata.args = toJSONSchema(pickValues?.metadata?.args, { mergeObject: false });
}
if (pickValues?.metadata?.returns) {
pickValues.metadata.returns = toJSONSchema(pickValues?.metadata?.returns, { mergeObject: false });
}
return pickValues;
}