Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwaggerV3 规范的数据源解析错误 #351

Closed
liuweiGL opened this issue Nov 22, 2022 · 0 comments · Fixed by #352
Closed

SwaggerV3 规范的数据源解析错误 #351

liuweiGL opened this issue Nov 22, 2022 · 0 comments · Fixed by #352

Comments

@liuweiGL
Copy link
Contributor

What happens(发生了什么)?

SwaggerV3 规范的数据源使用了 transformSwaggerData2Standard 处理

预期

应该使用 transformSwaggerV3Data2Standard 去处理数据

原因

Config.ts 处理 origin 配置错误,导致originType 被覆盖成undefined

standardOirginConfigs = origins.map((origin) => {
const customTemplatePath = Config.getAbsolutePath(configDir, origin.customTemplatePath);
return {
...origin,
rootDir: standardBaseConfig.rootDir,
originType: standardBaseConfig.originType,
usingOperationId: standardBaseConfig.usingOperationId,
customTemplatePath,
templateOriginalPath: {
customTemplatePath: origin.customTemplatePath
}
};
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant