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

Fix x-kubernetes-preserve-unknown-fields with type array #314

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

mnaser
Copy link
Contributor

@mnaser mnaser commented Feb 26, 2025

Closes #313

@mnaser mnaser changed the title Add a failing test Failing test for x-kubernetes-preserve-unknown-fields with type array Feb 26, 2025
@mnaser
Copy link
Contributor Author

mnaser commented Feb 26, 2025

I dropped my initial test and I believe I changed behaviour of a test that I don't think had the right expectation, a type array for preserve unknown fields feels like it should not be a BTreeMap in this case.

@clux
Copy link
Member

clux commented Feb 27, 2025

I dropped my initial test and I believe I changed behaviour of a test that I don't think had the right expectation, a type array for preserve unknown fields feels like it should not be a BTreeMap in this case.

yeah, i had the same concern.

Copy link
Member

@clux clux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this looks sensible. Thank you!

Looking at this and cross referencing with the previous PR, I think we probably ought to never map-wrap serde_json::Value for unknown fields. I see we do it in a few more places.

happy to merge on green dco/tests tomorrow 😴

@mnaser
Copy link
Contributor Author

mnaser commented Feb 27, 2025

I'll squash my commits to make it easier than going over signing all the other commits :)

@mnaser mnaser changed the title Failing test for x-kubernetes-preserve-unknown-fields with type array Fix x-kubernetes-preserve-unknown-fields with type array Mar 3, 2025
@clux clux merged commit 91929a7 into kube-rs:main Mar 4, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

apiextensionsv1.JSON does not seem to be properly processed
2 participants