Closed as not planned
Description
Which area/kind this issue is related to?
/area api
/area registry
Issue Description
Currently the workflow release-typescript-models
releases TypeScript models only for the latest version of the devfile spec. As a consumer of devfiles, it would be nice to have TypeScript model support for all releases of the devfile spec, as well as TypeScript model support for the REST API responses.
Possible solutions
- Generate an OpenAPI JSON (soon to be a complete superset of JSON schema - 90% there and in our case it shouldn't matter) either by converting the preexisting JSON schema or use
swaggest/rest
. Then convert to TypeScript models by openapi-typescript. - Use
typescriptify-golang-structs
on Go source code to generate TypeScript models.
Method 1 is preferred because it can be extended to easily test the API responses.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done ✅