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
20082026
-
…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 -
…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 -
…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
comment by umvi · 2024-08-17 · in Good programmers worry about data structures and their relationships -
…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…
comment by umvi · 2024-08-16 · in Good programmers worry about data structures and their relationships -
…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.
comment by umvi · 2024-08-16 · in Good programmers worry about data structures and their relationships -
…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…
comment by gladwindos · 2024-07-27 · in Show HN: API Typegen – Generate TypeScript types from API responses -
…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…
comment by umvi · 2024-07-25 · in Node.js adds experimental support for TypeScript -
…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 -
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…
comment by Cannabat · 2023-08-12 · in tRPC – Build and consume typesafe APIs without schemas or code generation -
…Googling it seemed like there were some decent options for type generation from swagger, i.e. https://github.com/drwpow/openapi-typescript
comment by darepublic · 2022-05-22 · in Show HN: Remult – a CRUD framework for full-stack TypeScript