mnahkies/openapi-code-generator
View on GitHub ↗ ★ 34 TypeScript
A code generation tool for openapi 3 / 3.1 specifications written in typescript, primarily aimed at generating typescript clients and server stubs. Other target languages may be added in future.
8 mentions on Hacker News by 1 person: 1 story, 7 comments · first 2024-03-27 · latest 2026-05-10
20082026
-
…be typed). Where as with fetch you can have a discriminated union based on the status code (eg: https://github.com/mnahkies/openapi-code-generator/blob/main... ) Although I do feel like I've seen too many instances of a 404 being used for…
comment by mnahkies · 2026-05-10 · in I’ve banned query strings -
…to an expected response type, and today I'm able to work around it with this kind of construct https://github.com/mnahkies/openapi-code-generator/blob/main... - but it's esoteric, and feels likely to be less efficient to check than what…
comment by mnahkies · 2025-07-24 · in Use Your Type System -
I have a simple script that asserts a clean working directory here https://github.com/mnahkies/openapi-code-generator/blob/main... which I use to check generated output hasn't changed after running the generation step in CI. It relies on…
comment by mnahkies · 2024-08-13 · in The new PostgreSQL 17 make dist -
…not always well supported by tooling, you can do $ref's across files in openapi specifications. Eg: https://github.com/mnahkies/openapi-code-generator/blob/main...
comment by mnahkies · 2024-04-30 · in TypeSpec: A new language for API-centric development -
…couple of days ago. They provide an API to convert to openapi documents so it was pretty painless ( https://github.com/mnahkies/openapi-code-generator/pull/158 ) My focus is on doing both client sdk and server stub generation, though only…
comment by mnahkies · 2024-04-30 · in TypeSpec: A new language for API-centric development -
…I couldn't see any runtime response body validation, is this something you're thinking about? - [1] https://github.com/mnahkies/openapi-code-generator/blob/main... - [2] https://github.com/mnahkies/openapi-code-generator/pull/123
comment by mnahkies · 2024-04-07 · in Show HN: Konfig – SDKs for APIs to write and maintain less API integration -
…to drift and bugs. (I'm working on my own little openapi -> typescript code generator over here https://github.com/mnahkies/openapi-code-generator - eventually plan to support more than typescript, and adding typespec support is something…
comment by mnahkies · 2024-03-27 · in Write OpenAPI with TypeSpec