Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I like to have support for openapi 3.0 and 3.1 #35

Open
thinkrapido opened this issue Feb 12, 2023 · 4 comments
Open

I like to have support for openapi 3.0 and 3.1 #35

thinkrapido opened this issue Feb 12, 2023 · 4 comments
Assignees
Labels
feature request good first issue Good for newcomers help wanted Extra attention is needed kind/spec

Comments

@thinkrapido
Copy link

I like to have support for openapi 3.0 and 3.1

@Peefy
Copy link
Contributor

Peefy commented Feb 13, 2023

/assign @amyXia1994

@amyXia1994
Copy link
Contributor

Welcome @thinkrapido ! 👋 👋

In order not to block your adoption, a temporary solution could be first to convert your openapi 3.0+ spec to openapi 2.0, and then use the kcl-openapi tool to resolve it to KCL. The LucyBot api-spec-converter (online version, GitHub repo, Node.js module) can be used to do that convertion.

The initial scenario that requires conversion between openapi & KCL is based on the k8s resources, and openapi 2.0 support is enough for that. Now that KCL is aimed to be generally used for common configuration and policy scenarios, the full support of openapi is indeed necessary. I'll solve that later and welcome to contribute!
Since you mentioned, could you share more information about your openapi spec and possible usage of KCL? 😃

@amyXia1994
Copy link
Contributor

The go-openapi lib we are adoption only supports swagger 2.0(as stated in the go-openapi readme page) and does not have clear plan to support it.

Planning to switch from go-openapi to kin-openapi

@amyXia1994
Copy link
Contributor

kcl-openapi should support openapi v3 since kubernetes provides v3 spec:
https://github.com/kubernetes/kubernetes/tree/master/api/openapi-spec

@Peefy Peefy added help wanted Extra attention is needed good first issue Good for newcomers labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request good first issue Good for newcomers help wanted Extra attention is needed kind/spec
Projects
None yet
Development

No branches or pull requests

3 participants