-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
apiextensionsv1.JSON
does not seem to be properly processed
#313
Comments
Possibly another case where we need to not nest in a map like the previous bug #229 Do you have a link to the relevant part of the openapi schema? |
Thanks for all your help so far, it's right here: |
I managed to generate a failing test here: I am still not sure confident on figuring out where the fix would live though. |
that's great. thank you! if you are feeling brave, you could try to copy from a similar unit test in Lines 651 to 689 in 9245007
because it's an array, it's likely this line that needs a similar treatment as the referenced issue: Lines 429 to 432 in 9245007
EDIT: i see your pr now 🤦 |
Closes: kube-rs#313 Signed-off-by: Mohammed Naser <[email protected]>
I'm working with the following crate which relies on auto-generated objects using CRs:
https://github.com/capi-samples/cluster-api-rs
It seems like the
apiextensionsv1.JSON
type is being serialized in this way:https://github.com/capi-samples/cluster-api-rs/blob/84fcaa691bbace352663a5fab60094656176283c/src/api/capi_clusterclass.rs#L731-L734
You can find the source code here:
https://github.com/kubernetes-sigs/cluster-api/blob/15ce36f9eec61be27ec96e1044c2c642ee0828f4/api/v1beta1/clusterclass_types.go#L605-L608
I believe it should be translated into
Option<Vec<serde_json.Value>
.The text was updated successfully, but these errors were encountered: