Hacker GitHub

← All repos

openapi-ts/openapi-typescript

View on GitHub ↗ ★ 8,426 TypeScript

Generate TypeScript types from OpenAPI 3 specs

11 mentions on Hacker News by 6 people: 1 story, 10 comments · first 2022-05-22 · latest 2025-03-11

Mentions per year 11 mentions · busiest year 2024 (6)
20082026
  1. …on this showstopping bug which nobody can debug because it uses overly expressive types in TS: https://github.com/openapi-ts/openapi-typescript/issues/1769 )
    comment by umvi · 2025-03-11 · in A 10x Faster TypeScript
  2. …wild that has a bug that is extremely difficult to fix unless you burn hours on trial and error: https://github.com/openapi-ts/openapi-typescript/blob/main/p... (the bug in question, still unfixed): https://github.com/openapi-ts/openapi-typ…
    comment by umvi · 2024-12-19 · in How types make hard problems easy
  3. …to debug it. For example, try fixing this issue which is the result of a problem with that type: https://github.com/openapi-ts/openapi-typescript/issues/1769
  4. …documented in at least half a dozen open issues, some of which are super esoteric to solve: https://github.com/openapi-ts/openapi-typescript/issues/1778... In this case ^ the problem was due to "behavioral differences based on the…
  5. …code. For example, I doubt anyone could explain this "type" without studying it for several hours: https://github.com/openapi-ts/openapi-typescript/blob/main/p... In this case, the "type" is really an entire program.
  6. …has an openapi spec, as there are other great libraries to help you generate accurate types such as https://github.com/openapi-ts/openapi-typescript . But I made this package to use when working with external apis that don't have an…
  7. …are "crazy to look at" seem good in theory but are janky in practice. For example, openapi-fetch ( https://github.com/openapi-ts/openapi-typescript/tree/main/p... ), on paper seems great, but has lots of jank in practice. And I would wager…
  8. …use a frankensteined system of the OpenAPI spec that django-ninja generates + openapi-typescript ( https://github.com/drwpow/openapi-typescript ). This means when I add, say, a new field to a response in Django, I immediately get…
    comment by jmduke · 2023-12-04 · in Django 5.0
  9. ▲ 2
    OpenAPI-TypeScript – OpenAPI schemas in TypeScript
    story by vyrotek · 2023-11-25 · 0 comments
  10. Another great library to generate TS types from OpenAPI is https://github.com/drwpow/openapi-typescript . It provides the types as single objects you access via indexing, which is pretty nice. There's a partner library to generate a typed…
  11. …Googling it seemed like there were some decent options for type generation from swagger, i.e. https://github.com/drwpow/openapi-typescript