Hacker GitHub

← All repos

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

Mentions per year 8 mentions · busiest year 2024 (6)
20082026
  1. …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
  2. …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
  3. 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
  4. …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...
  5. …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…
  6. ▲ 2
    Show HN: Pre-alpha tool for analyzing spdx SBOMs generated by GitHub
    story by mnahkies · 2024-04-21 · 0 comments
  7. …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
  8. …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