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. …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?
  5. …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
  6. …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
  7. …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
  8. …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
  9. …- 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
  10. …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
  11. …[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
  12. …), 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
  13. 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…
  14. 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…
  15. …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.
  16. …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
  17. …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
  18. …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
  19. …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
  20. …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
  21. …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
  22. …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.
  23. …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
  24. …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
  25. …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
  26. …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.
  27. …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
  28. …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
  29. …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…
  30. 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.…
  31. 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.
  32. …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?
  33. 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?
  34. 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
  35. 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
  36. 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…
  37. 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…
  38. 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…
  39. …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...
  40. …to enable wrappers for Go, Scala, Flash, Java, Objc, PHP, Python, Python3, Ruby, Node, and more. https://github.com/swagger-api/swagger-codegen
  41. https://github.com/wordnik/swagger-codegen does javascript, scala, java, objective-c, php, python (3), ruby, android, and even flash Also has the benefit of a commercial backer ( https://helloreverb.com ) and a real app depending on it
  42. https://github.com/wordnik/swagger-codegen
  43. Generating a server stub was done long ago, in swagger, which is completely OSS: https://github.com/wordnik/swagger-codegen#to-build-a-server... And it's based on an intuitive JSON structure.