Open API TS Generator (Hey-API)
# package-development
l
Heads up, we noticed that the
openapi-typescript-codegen
npm library that we're using to generate the OpenAPI TypeScript client (model/service bindings) for the Management API is being deprecated, and there's an active fork that has been adding new features called
@hey-api/openapi-ts
, so we've migrated over to that library (for the next incremental Beta release). Links for bedtime reading... https://github.com/ferdikoomen/openapi-typescript-codegen?tab=readme-ov-file#important-announcement https://github.com/hey-api/openapi-ts https://heyapi.vercel.app/openapi-ts/migrating.html There are small differences in the options for the
@hey-api/openapi-ts
tool, I've outlined them in this Bellissima PR: https://github.com/umbraco/Umbraco.CMS.Backoffice/pull/1565 Back with my community package dev hat on, I'll also be migrating over to use this library on Contentment.
w
Yeh noticed this few days back as well and ported over to use this
Near 1:1 port and the main thing is the thing you mention about the postfix
Trying to find time to help get them to see if we can fix working with HTTPS over local SSL Dev Cert
l
The swap from
any
to
unknown
caused various TS compile errors, but those probably needed to be tidied up anyway.
w
Yeh probably more noticable in the CMS core than the two tiny API endpoints I have
Good to share this with the community, as I think most package devs are using what you guys & gals are using. So good to be in sync and list out the issues/changes you found
p
Thanks for the tip here @leekelleher FYI @rickbutterfield @jacksorjacksor (Richard Jackson) in relation to the TypeScript generation you've been looking at
w
A way to get the openapi-ts to work with self signed SSL Certs for anyone who is curious or cares https://github.com/hey-api/openapi-ts/issues/276#issuecomment-2047972204
j
Oh wow this is awesome, will definitely look into everything listed here!
31 Views