-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
not handling non-string enum #91
Comments
Hey there. Thanks for the issue. I originally thought this was a duplicate of #39, since non-string enums will be described in I think the problem here is the statusCode:
default: 302
description: "StatusCode is the HTTP status
code to be used in response. \n Support: Core
\n Note that values may be added to this enum,
implementations must ensure that unknown values
will not cause a crash. \n Unknown values
here must result in the implementation setting
the Accepted Condition for the Route to `status:
False`, with a Reason of `UnsupportedValue`."
enum:
- 301
- 302
type: integer and i think we could add support for that before we add full complex-enum support, so going to keep this issue open. Initial thoughts on how to handle this:
It might not be too bad. Feel free to take a stab at it if you want, otherwise i'll get to it eventually™ |
Built from |
Hehe excellent. I'll put it into a proper kopium release on the weekend or early next. Have one more fix I want in first. |
Much appreciated! Extra context: In Kubernetes SIG Network we're looking into providing official bindings for Gateway API in Rust using Kopium to generate them from the CRDs built by our existing Go library (for low maintenance Rust support). The project is at https://github.com/shaneutt/gateway-api-rs and https://crates.io/crates/gateway-api, but the hope is to move it into https://github.com/kubernetes-sigs/ soon. This was the only hard blocker I ran into so far, so again thank you very much for knocking it out. |
Woah, that is really cool! I'll keep an eye on that one, and if it makes it in will definitely link to it in the README! |
Hi 👋
When using
kopium
to generate Kubernetes Gateway API resources, I found that it's not capable of generating one of the APIs,HTTPRoute
specifically:I found the line here. Looks like there's just more
TODO
here to add support? Is there already work tracking thisTODO
?The text was updated successfully, but these errors were encountered: