You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you. We are very happy to learn that this project is used to power up an ambitious project like definitely-generated-typed. I like the concept of building a central repository with generated types.
We've built @spec2ts/openapi with OpenAPI v3+ compatibility to avoid managing legacy code and avoid having too much edge cases. The future is v3+ 😁 !
However, you can take a look at swagger2openapi. It's a simple library that can convert swagger (2.0) files to OpenAPI (3.0) files.
I don't think so, but I'll give it a try. Gotta be better than nothing. I'll update you here when I get to it (could be a few days, this is an after-hours side-project, presently).
I think this could do the job. It's a mature library which is used in production by many.
Let me know of the results of your tests. I will try to help if I can.
Hi! Thanks for opensourcing it, I'm using it in https://github.com/dimitropoulos/definitely-generated-typed
The trouble is, Kubernetes only has OpenAPI v3 as an option and it generates types that are not really usable (and, crucially, incomplete. For example note that https://github.com/dimitropoulos/definitely-generated-typed/blob/master/types/kubernetes/versions/v1.20.0/index.ts is missing a type for IngressSpec (https://raw.githubusercontent.com/dimitropoulos/definitely-generated-typed/master/types/kubernetes/versions/v1.20.0/source.json).
It's pretty compact, where I'm grabbing the schema, so hopefully I'm not just doing something wrong: https://github.com/dimitropoulos/definitely-generated-typed/blob/master/generate.ts#L72-L75.
If it's possible to use the openapi v3 parser (as I am) and get these definitions, that'd be enough to get the ball rolling.
The text was updated successfully, but these errors were encountered: