Re:TypeSpec: A new language for API-centric development
by bterlson on Tuesday April 30, 2024 @12:10AM
(#40207169)
The OpenAPI and Json Schema emitters can produce yaml.
Re:TypeSpec: A new language for API-centric development
by mnahkies on Tuesday April 30, 2024 @01:39AM
(#40207575)
I added support for typespec as an input specification to my openapi 3 based code generator a couple of days ago.
They provide an API to convert to openapi documents so it was pretty painless (https://github.com/mnahkies/openapi-code-generator/pull/158)
My focus is on doing both client sdk and server stub generation, though only typescript so far - will hopefully add other languages eventually, when I'm satisfied with the completeness of the typescript templates.
I'd be delighted to have a high-level IDL that gave the same sort of thing that CORBA IDL gave us 25 years ago -- schema and stub generation for multiple languages.