Better HN
topnewbestaskshowjobs
Log inSign up

wing328hk

94 karma · joined Jul 14, 2012 (14y ago) · 144 submissions

Core team and founding member of OpenAPI Generator, which is a free, open-source project to automatically generate API clients, server stubs, schemas, API documentation and more based on OpenAPI/Swagger specifications: https://github.com/OpenAPITools/openapi-generator
Submissions

comment 3y ago · link · parent

The new Python client should be easier to use and more pythonic.

Please give it a try to see if you like it.

2.

Show HN: Auto-Generate Python REST API Clients Using OpenAPI Generator

5 points · by wing328hk · 3y ago · 2 comments

comment 4y ago · link · parent

One way is to auto-generate SDKs using OpenAPI Generator (http://github.com/openapitools/openapi-generator) given an OpenAPI spec.

comment 4y ago · link · parent

If you want to generate a Crystal SDK for REST APIs, please give OpenAPI Generator [1] a try. Here are 3 simple steps to do so: https://forum.crystal-lang.org/t/crystal-api-client-generato....

Hopefully this will save you some time in manually creating the API clients in Crystal.

[1] https://openapi-generator.tech/

5.

OpenAPI Generator v5.1.1 released with a new go-echo-server generator(twitter.com ↗)

2 points · by wing328hk · 5y ago · discuss

6.

Show HN: Go Echo Server Generator

1 points · by wing328hk · 5y ago · discuss

comment 5y ago · link · parent

I agree with you that some generators are less mature. For example, we just added a Crystal client generator several weeks ago and we only have tests for posting a JSON body and getting it back to verify the result. Features like oneOf, anyOf are not yet supported (of course we welcome contributions to improve the Crystal client generator).

You can use customized templates (e.g. via -t option in the CLI) to meet your unique requirements. Another tips is to use code formatter such as https://prettier.io/, eslint etc to format the auto-generated code based on the style you want.

Please open an issue via http://github.com/OpenAPITools/openapi-generator/issues/new if you need help with OpenAPI Generator.

Disclosure: I'm the top contributor to OpenAPI Generator

8.

Cyrstal API Client Generator(forum.crystal-lang.org ↗)

1 points · by wing328hk · 5y ago · discuss

9.

OpenAPI Generator v5.0.0-beta3 released with Angular 11 support and more(github.com ↗)

2 points · by wing328hk · 6y ago · discuss

comment 6y ago · link · parent

You may want to give https://apitools.dev/swagger-parser/online/ a try to validate OpenAPI (fka Swagger) files.

You can do it online without a sign up or use the API or CLI according to your preference.

comment 6y ago · link · parent

FYI. OpenAPI Generator supports many programming languages and server-side frameworks: https://github.com/OpenAPITools/openapi-generator#overview

This is not to say it has more languages supported than Protobuf as I do not know exactly how many generators out there supporting Protobuf.

(OpenAPI Generator also comes with the generator/converter that converts OpenAPI spec documents into gRPC and protocol buffer schema files. Not sure if OpenAPI Generator is also counted as a generator for Protobuf)

comment 6y ago · link · parent

> Does OpenAPI generate code for you? I have worked on projects that use it and didn't have any generated code, so I am assuming not...

Please give OpenAPI Generator [1] a try to generate clients, servers stubs, documentation, schemas (graphql, protobuf, etc) and more. It supports many programming languages and many companies are already using it [2]:

[1] https://github.com/OpenAPITools/openapi-generator

[2] https://openapi-generator.tech/users

(Disclosure: I'm the top contributor to OpenAPI Generator)

13.

OpenAPI Generator CLI v2 released with a new version manager(twitter.com ↗)

1 points · by wing328hk · 6y ago · discuss

12345