5 ms·
For cross-language, I can recommend Fern, which works with OpenAPI http://buildwithfern.com http://buildwithfern.com
by ushakov 3y ago
For cross-language, I can recommend Fern, which works with OpenAPI
http://buildwithfern.com http://buildwithfern.com
- mdaniel 3y agoYou can recommend it in what context, from openapi (as they claim https://github.com/fern-api/fern#starting-from-openapi https://github.com/fern-api/fern#starting-from-openapi ) or from their ... special ... definition schema? For those wanting less talk, moar code: https://github.com/fern-api/fern-java/blob/0.4.2-rc3/example-project/api/src/api.yml https://github.com/fern-api/fern-java/blob/0.4.2-rc3/example... -> https://github.com/fern-api/fern-java/blob/0.4.2-rc3/example-project/example-spring-server/src/main/java/com/example/ExampleResource.java https://github.com/fern-api/fern-java/blob/0.4.2-rc3/example... Regrettably, I wasn't able to readily find a matching openapi example, likely cause they really seem to believe their kid-gloves format is the future (or lock in, depending on how bitter one is feeling) --- confusingly, their repo has a "YCombinator 2023" badge on it that just links to the badge itself. Some Algolia for Launch HN didn't cough up anything, but there was a Show HN I found: https://news.ycombinator.com/item?id=34346428 https://news.ycombinator.com/item?id=34346428
- dsinghvi 3y agoDisclosure: I'm a contributor to Fern. This is good feedback that we need to provide more examples starting with OpenAPI instead of with the Fern Definition. For some context, we convert the OpenAPI spec into a Fern definition and then pass that into the code generators. If you want to see some real world examples, check out these links: - https://github.com/vellum-ai/vellum-client-generator/tree/main/fern/api/openapi https://github.com/vellum-ai/vellum-client-generator/tree/ma... -> https://github.com/vellum-ai/vellum-client-python https://github.com/vellum-ai/vellum-client-python - https://github.com/Squidex/sdk-fern/tree/main/fern/api/openapi https://github.com/Squidex/sdk-fern/tree/main/fern/api/opena... -> https://github.com/Squidex/sdk-node https://github.com/Squidex/sdk-node Worth calling out that you can go from the Fern Definition -> OpenAPI anytime to prevent lock in.