leekelleher
04/10/2024, 2:20 PMopenapi-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.Warren Buckley
04/10/2024, 2:21 PMWarren Buckley
04/10/2024, 2:22 PMWarren Buckley
04/10/2024, 2:23 PMleekelleher
04/10/2024, 2:23 PMany
to unknown
caused various TS compile errors, but those probably needed to be tidied up anyway.Warren Buckley
04/10/2024, 2:23 PMWarren Buckley
04/10/2024, 2:26 PMPrenders
04/10/2024, 2:29 PMWarren Buckley
04/10/2024, 4:16 PMjacksorjacksor (Richard Jackson)
04/11/2024, 6:49 PM