Hacker GitHub

← All repos

swagger-api/swagger-codegen

View on GitHub ↗ ★ 17,795 Mustache

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.

55 mentions on Hacker News by 24 people: 12 stories, 43 comments · first 2012-08-28 · latest 2025-09-13

Mentions per year 55 mentions · busiest year 2016 (19)
20082026
  1. My servers are Java, my clients are Python. I use the Spring & Python generators in https://github.com/swagger-api/swagger-codegen
    comment by RadiozRadioz · 2025-09-13 · in Oq: Terminal OpenAPI Spec Viewer
  2. …code generators or it builds a proprietary code generator from scratch? Swagger Codegen: https://github.com/swagger-api/swagger-codegen OpenAPI Generator: https://github.com/OpenAPITools/openapi-generator AutoRest:…
  3. …at OpenAPI Generator ( https://github.com/openapitools/openapi-generator ) or Swagger Codegen ( https://github.com/swagger-api/swagger-codegen ) - especially if the API provider has an official OpenAPI/Swagger specification. (If not you…
  4. ▲ 20
    Ask HN: Is anyone using REST API code generator in production?
    story by craig_murray · 2019-05-18 · 16 comments
  5. …stubs and API clients as code in various languages once you're ready to break out of the mock API. https://github.com/swagger-api/swagger-codegen That's the route I'd go personally as this tooling is available for free, is fairly mature,…
    comment by tedmiston · 2019-01-22 · in Mock API?
  6. …it is also broken under 3.7. [2] [0]: https://github.com/kubernetes-client/python/issues/558 [1]: https://github.com/swagger-api/swagger-codegen/pull/8401 [2]: It bit me.
    comment by OJFord · 2018-12-18 · in Reasons Python Sucks
  7. …code with far greater comfort, and it seems to support multiple Typescript clients already. [0] https://github.com/swagger-api/swagger-codegen [1] https://github.com/RSuter/NSwag
    comment by ThePadawan · 2018-10-25 · in gRPC-Web is going GA
  8. …Python, which swagger codegen supports client generation for but not yet server generation (but see https://github.com/swagger-api/swagger-codegen/issues/7451 ). Admittedly, gRPC doesn't support asyncio either (…
    comment by philwelch · 2018-10-25 · in gRPC-Web is going GA
  9. …the real ones returned by the backend) with i.e. joi [2]. [0]: https://github.com/nock/nock [1]: https://github.com/swagger-api/swagger-codegen [2]: https://github.com/hapijs/joi
    comment by littlecranky67 · 2018-08-24 · in Why use GraphQL, good and bad reasons
  10. …- https://github.com/swagger-api/swagger-parser/blob/master/RE... And basically everything else. https://github.com/swagger-api/swagger-codegen/blob/master/R...
    comment by scarface74 · 2018-05-09 · in Everything old is new again: Microservices
  11. …I recommend they look at the swagger-codegen[0] api stub templates. There clients as well. [0]: https://github.com/swagger-api/swagger-codegen/tree/master/m... > At some point, you write a library right? Normally a flask-ext forms around a…
    comment by oneweekwonder · 2018-04-27 · in Flask 1.0 Released
  12. …[1]: https://github.com/swagger-api/swagger-editor/tree/2.x [3]: https://github.com/swagger-api/swagger-codegen/
    comment by oneweekwonder · 2018-04-13 · in EdgeDB: A New Beginning
  13. …), you can autogenerate Rust client and server stubs using the standard Swagger code generators ( https://github.com/swagger-api/swagger-codegen/ ). In case you're not familiar with Swagger/OpenAPI, it's a format for specifying (generally…
    comment by maffydub · 2018-03-09 · in Writing a Microservice in Rust
  14. ▲ 2
    Swagger Codegen 2.3.0 released with 13 new code generators
    story by wing328hk · 2017-12-26 · 0 comments
  15. ▲ 1
    Swagger-codegen 2.3.0
    story by based2 · 2017-12-24 · 0 comments
  16. Hi, for any feedback on the Go server stub generator, please let us know via https://github.com/swagger-api/swagger-codegen/issues/new . Also worth sharing with you that the Go client generator in the latest master (2.3.0) has been…
  17. It's fairly easy to modify for your needs though, have a look at the templates: https://github.com/swagger-api/swagger-codegen/tree/master/m... You can create a copy of that template directory, adjust them and pass it as a parameter to…
  18. ▲ 3
    Swagger Codegen 2.2.3
    story by based2 · 2017-07-30 · 0 comments
  19. ▲ 1
    Swagger Codegen 2.2.3 has been released
    story by wing328hk · 2017-07-19 · 0 comments
  20. …generators (C# Nancy, Python Flask, etc). For a full list, please refer to the project README. [1] https://github.com/swagger-api/swagger-codegen Discloure: I'm a top contributor to the project.
  21. …to generate API documentations. If you need help using the generator, please open a a ticket via https://github.com/swagger-api/swagger-codegen/issues/new [1] https://github.com/swagger-api/swagger-codegen
  22. …but we usually do it with reasons based on feedback from developers. Please share with us more via https://github.com/swagger-api/swagger-codegen/issues/new so that we can further improve the output. You may find Swagger Codegen a huge…
    comment by wing328hk · 2017-04-05 · in Problems with Swagger
  23. …the others (e.g. Ruby, PHP, C#). For the issues with Qt5 C++ generator, please open an issue via http://github.com/swagger-api/swagger-codegen/issues/new so that the community can help work on it. > Mustache is fine for doing a little view…
    comment by wing328hk · 2017-04-05 · in Problems with Swagger
  24. …looked into the infrastructure of the codegen project, I found... mustache. Check it out yourself: https://github.com/swagger-api/swagger-codegen/tree/master/m... Mustache is fine for doing a little view rendering, but for language…
    comment by mr_tristan · 2017-04-04 · in Problems with Swagger
  25. …OpenAPI 3.0 so eventually Swagger Codegen will support Swagger 1.2, 2.0 and OpenAPI 3.0. [1] https://github.com/swagger-api/swagger-codegen [2] https://github.com/swagger-api/swagger-parser
    comment by wing328hk · 2017-03-22 · in A Visual Guide to What's New in Swagger 3.0
  26. …server stubs as well as API documentations. [1] https://github.com/OAI/OpenAPI-Specification [2] https://github.com/swagger-api/swagger-codegen Disclosure: I'm a top contributor to Swagger Codegen.
    comment by wing328hk · 2017-03-10 · in Django REST framework 3.6 released
  27. ▲ 1
    Swagger Codegen 2.2.2 has been released
    story by wing328hk · 2017-03-02 · 0 comments
  28. …please give Swagger Codegen [1] a try and the latest master supports both Swift 2.x and 3. [1]: https://github.com/swagger-api/swagger-codegen Disclaimer: I'm a top contributor to the project.
  29. …PHP, etc), server stubs (e.g. C# NancyFx, PHP Lumen, Python Flask, etc) and API documentations. [1] https://github.com/swagger-api/swagger-codegen
    comment by wing328hk · 2017-02-23 · in API Design Guide
  30. …generate API clients in Java, C#, Javascript, Typescript, Ruby, ObjC, Swift and more. [1]: https://github.com/swagger-api/swagger-codegen Disclosure: I'm a top contributor to Swagger Codegen
  31. ▲ 5
    Ask HN: Compare AutoRest, Apimatic and Swagger Codegen
    story by AaronKJohnson · 2016-09-13 · 5 comments
  32. ▲ 3
    Swagger Codegen adds Apache v2 license to auto-generated files
    story by alexeyr · 2016-08-29 · 0 comments
  33. …to generator.swagger.io. Please give it a try. For any issue/question, please log a ticket via https://github.com/swagger-api/swagger-codegen/issues/new
    comment by wing328hk · 2016-07-19 · in Swagger-codegen 2.2.0 Released
  34. ▲ 13
    Swagger-codegen 2.2.0 Released
    story by wing328hk · 2016-07-18 · 4 comments
  35. …OpenAPI/Swagger spec, you can generate NancyFx server stub using Swagger Codegen. Please refer to https://github.com/swagger-api/swagger-codegen/wiki/Server-s... for more information.
  36. …API client (lang: go), there are about 40 PRs (enhancements, bug fixes)[1] to Go API client since https://github.com/swagger-api/swagger-codegen/pull/1747 was merged into master. Please pull the latest master to give it another try and see…
    comment by wing328hk · 2016-06-30 · in Goa: Design-First API Generation
  37. …for go/node). - Go - This thread on the PR adding go client generation is a good introduction - https://github.com/swagger-api/swagger-codegen/pull/1747 , basically the generator currently only supports very simplistic datatypes and will…
    comment by templaedhel · 2016-06-29 · in Goa: Design-First API Generation
  38. …in Slate since the format seems to be similar. Actually I opened an issue in swagger-codegen repo ( https://github.com/swagger-api/swagger-codegen/issues/1387 ) and we talked about it. The reason that I created a separate project is that…
  39. The latest version of Swagger Codegen ( https://github.com/swagger-api/swagger-codegen ) also automatically generates documentation (markdown) for API clients/libraries, e.g. installation, getting start, doc for API endpoints and models.…
  40. My team has been using Swagger Codegen ( https://github.com/swagger-api/swagger-codegen ) since stable version 2.1.5 to generate C#, Ruby and PHP API clients and the experience is pretty good so far.
  41. …What do you think about automatic generation of client-code in various languages? Swagger-Codegen ( https://github.com/swagger-api/swagger-codegen ) is a pretty mature, free and open-source project for generating API clients (e.g. ObjC,…
    comment by wing328hk · 2016-04-28 · in Why isn't your API specification public?
  42. Per the SDKs ... If you've a Swagger/OpenAPI spec, you can use Swagger Codegen ( https://github.com/swagger-api/swagger-codegen ), a free and open-source project, to generate API clients (SDKs) in C#, Ruby, PHP, Java, ObjC, etc. Here is an…
    comment by wing328hk · 2016-04-28 · in Why isn't your API specification public?
  43. ▲ 1
    Swagger-Codegen 2.1.6 Released
    story by wing328hk · 2016-04-13 · 0 comments
  44. Have you tried using Swagger-Codegen ( https://github.com/swagger-api/swagger-codegen ) to generate API clients, documentation (markdown) and test spec? Disclosure: I'm a top contributor to Swagger-Codegen
  45. You may want to take a look at Swagger-Codegen ( https://github.com/swagger-api/swagger-codegen ) as well to generate ASP.NET 5 server stub or C# API client given a Swagger/OpenAPI spec. Disclosure: I'm a top contributor to swagger-codegen
  46. If you've a Swagger/OpenAPI spec, you can use Swagger Codegen ( https://github.com/swagger-api/swagger-codegen ) to generate API clients (SDKs) in C#, Ruby, PHP, Java, ObjC, etc. Here is an example: https://github.com/wing328/petstore-php…
  47. https://github.com/swagger-api/swagger-codegen#companiesproj... shows some companies using OpenAPI/Swagger and Swagger Codegen "for the win" - automatically generate API client and server stub given an OpenAPI/Swagger spec. (We obtained…
  48. For generating API client or server side code, please try https://github.com/swagger-api/swagger-codegen and open a ticket via https://github.com/swagger-api/swagger-codegen/issues if you need any assistance. Disclaimer: top contributor to…
  49. ▲ 5
    Swagger-codegen 2.1.4 Released
    story by wing328hk · 2015-11-10 · 0 comments
  50. …around it is pretty half-assed. Having a machine-readable spec is a game changer, though. [1]: https://github.com/swagger-api/swagger-codegen/wiki/Creating...