News for hackers. Stuff that matters.
Re:Show HN: An opinionated and statically-typed TypeScript S... by AChelikani on Wednesday August 31, 2022 @01:32PM (#32665600)
Congrats Sagar and team - excited that someone is working on this! OpenAPI generator and swagger codegen has almost always produced unreadable and unusable SDKs for me, especially when my schema contains any model composition or polymorphism with allOf/anyOf/oneOf.

Have you guys written this entirely from scratch or done your own mustache templating on top of openapi-generator?

Re:Show HN: An opinionated and statically-typed TypeScript S... by simplesager on Wednesday August 31, 2022 @01:59PM (#32665957)
We used a forked version of https://github.com/readmeio/oas to help dereference `$ref` statements, but other than that this is entirely hand-written: The Typescript `factory` AST API + `prettier` for formatting.
Re:Show HN: An opinionated and statically-typed TypeScript S... by simplesager on Wednesday August 31, 2022 @02:15PM (#32666169)
yeah i was always annoyed how machine like the stubs that it generated are. I did here that they invested on making the go SDK more idiomatic. We've been exploring using templating or taking this approach of writing the generators from scratch in the native language.