swagger-codegen
swagger-codegen copied to clipboard
swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
##### 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...
##### Description Hi, I wanted to implement the pattern (RegularExpression), minLength and maxLength validation attributes on the model generated for aspnetcore, but encountered an issue: While in most other languages...
Do you have any plans to support the Harmony client SDK as HarmonyOS continues to develop?
See template at https://github.com/rubygems/rubygems/blob/d786a1ccca3922d21572f77b021c51bfaf005819/bundler/lib/bundler/templates/newgem/newgem.gemspec.tt#L34 Additionally, exclude .gem files, since there seem to be several gems built from swagger-codegen that are recursively including older .gem versions, and thus growing in size...
##### Description When I tried to generate a Python client using the Swagger config file, field types were replaced with `object` like this:  So it seems that the current...
##### Description I have following situation - customCodegen as jar artifact - customized templates as part of the same jar (similar packaging like with (e.g. adaptedTemplate) - used customCodegen from...
##### Description The setter method in the Python model.mustache template has special handling for list and map properties which are also tagged as enumerated. The list validation checks the list...
2.3.1 generate-server-jar generate-sources generate ${swagger-gen.yml} spring src/gen/java ${swagger-gen.api.package} ${swagger-gen.model.package} true false java8-localdatetime false false OffsetDateTime=LocalDateTime java.time.OffsetDateTime=java.time.LocalDateTime
##### Description Enums returns invalid code ```php public function getFailureReasonAllowableValues() { return [ self::FAILURE_REASON_EXPIRED_CARD self::FAILURE_REASON_INVALID_DETAILS self::FAILURE_REASON_FRAUD self::FAILURE_REASON_AUTHENTICATION_REQUIRED self::FAILURE_REASON_INVALID_CARD self::FAILURE_REASON_GENERAL_DECLINE self::FAILURE_REASON_CONTACT_PROVIDER self::FAILURE_REASON_LACK_OF_FUNDS ]; } ``` ##### Swagger-codegen version Swagger-codegen-v3 docker:latest #####...
This is a fix for issue #9843 . According to the [OpenAPI spec](https://swagger.io/docs/specification/authentication/oauth2/), one is supposed to define the superset of all OAuth scopes available globally for an API under...