You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我是一名前端开发者,非常喜欢Swagger-Codegen带来的前端ts代码生成能力,我经常用来将后端接口文档的api-docs生成Typescript-Axios的代码,但是遇到了问题,当后端的Coltroller层返回值是Map的时候,Swagger-Codegen直接报错了(translate:I am a front-end developer and I really enjoy the front-end TS code generation capability brought by Swagger Codegen. I often use API docs in back-end interface documents to generate Typescript Axios code, but I encountered a problem. When the Coltroller layer in the backend returns a Map value, Swagger Codegen directly reports an error)
Description
我是一名前端开发者,非常喜欢Swagger-Codegen带来的前端ts代码生成能力,我经常用来将后端接口文档的api-docs生成Typescript-Axios的代码,但是遇到了问题,当后端的Coltroller层返回值是Map的时候,Swagger-Codegen直接报错了(translate:I am a front-end developer and I really enjoy the front-end TS code generation capability brought by Swagger Codegen. I often use API docs in back-end interface documents to generate Typescript Axios code, but I encountered a problem. When the Coltroller layer in the backend returns a Map value, Swagger Codegen directly reports an error)
当尝试通过服务 'https://generator3.swagger.io/api/generate' 获取Typescript-Axios代码时,服务错误为:(translate:When attempting to access the service 'https://generator3.swagger.io/api/generate' When obtaining Typescript Axios code, the service error is:
Error generating
typescript-axios
code : Could not process model 'Map脗芦string,string脗禄'.Please make sure that your schema is correct!Swagger-codegen version
Latest Version
Swagger declaration file content or url
Command line used for generation
Steps to reproduce
Related issues/PRs
Suggest a fix/enhancement
The text was updated successfully, but these errors were encountered: