Skip to content

provides and publish types for different languages (interested in typescript) #353

Closed
@benoitf

Description

@benoitf

Is your feature request related to a problem? Please describe.
Using devfile v2 from a typescript client, and using https://github.com/kubernetes-client/javascript I have to perform the calls using CustomObjectsApi for custom resources that is returning Object type which is not convenient.

For example listing a Pod I've https://github.com/kubernetes-client/javascript/blob/master/src/gen/model/v1PodList.ts or https://github.com/kubernetes-client/javascript/blob/751488214d58feb40d21038c62a225e09487d600/src/gen/model/v1Pod.ts#L21 allowing to be sure what fields are proposed.

I would want to have a type allowing me to cast to the OpenAPI schema

Describe the solution you'd like
I'm interested in typescript so having a typescript types (d.ts file) published on npmjs.com exposing DevWorkspace object would help to be sure that when the API is changing it's failing at compilation time.

Describe alternatives you've considered
N/A

Additional context
kubernetes-client is using openapi-generator
https://github.com/kubernetes-client/gen/blob/master/openapi/openapi-generator/client-generator.sh

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions