Skip to content

Support for OpenAPI v2? #22

@dimitropoulos

Description

@dimitropoulos

Hi! Thanks for opensourcing it, I'm using it in https://github.com/dimitropoulos/definitely-generated-typed

The trouble is, Kubernetes only has OpenAPI v3 as an option and it generates types that are not really usable (and, crucially, incomplete. For example note that https://github.com/dimitropoulos/definitely-generated-typed/blob/master/types/kubernetes/versions/v1.20.0/index.ts is missing a type for IngressSpec (https://raw.githubusercontent.com/dimitropoulos/definitely-generated-typed/master/types/kubernetes/versions/v1.20.0/source.json).

It's pretty compact, where I'm grabbing the schema, so hopefully I'm not just doing something wrong: https://github.com/dimitropoulos/definitely-generated-typed/blob/master/generate.ts#L72-L75.

If it's possible to use the openapi v3 parser (as I am) and get these definitions, that'd be enough to get the ball rolling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions