How to run swagger-codegen for OpenAPI 3.0.0

前端 未结 2 682
日久生厌
日久生厌 2021-01-17 09:47

looks like official swagger for openapi specification V3 support is near release https://blog.readme.io/an-example-filled-guide-to-swagger-3-2/, and the swagger-codegen has

相关标签:
2条回答
  • 2021-01-17 10:18

    Swagger-codegen 3.0.0 snapshots now include a limited number of targets for code generation from OpenAPI 3.0 definitions. https://github.com/swagger-api/swagger-codegen/issues/6598#issuecomment-333428808

    There is an alternative experimental implementation of the codegen engine, using the original swagger-codegen 2.x templates, written in Node.js: https://github.com/mermade/openapi-codegen - if your language is not yet supported, a config file just needs to be created for it mapping the template files to outputs.

    0 讨论(0)
  • 2021-01-17 10:33

    OpenAPI Generator (found by top contributors of Swagger Codegen) supports both OpenAPI specification v2 and v3.

    You can use the docker images, Java JAR (SNAPSHOT), Brew or npm to give it a try.

    For more information about OpenAPI Generator, please refer to the project's README

    If you need any help, please open an issue and we'll look into it.

    UPDATE: 1st stable version 3.0.0 has been released: https://github.com/OpenAPITools/openapi-generator/releases/tag/v3.0.0

    0 讨论(0)
提交回复
热议问题