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: remove omitempty in invalid json tag combination #262

Merged

Conversation

kkendzia
Copy link
Contributor

@kkendzia kkendzia commented Jan 3, 2025

Description of your changes

As mentioned in crossplane/function-sdk-go#161 and further go-json-experiment/json#39 "inline,omitempty" is an invalid combination of json tags. This leads to issues in marshaling DataKeySelector.

I have:

  • Read and followed Crossplane's contribution process.
  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

We have tested the modified types.go locally in our e2e tests. This shouldn't be a breaking change as it wasn't working in crossplane functions until now. Also CRDs have not changed.

Would appreciate a 0.20 or even 0.19 backport

Copy link
Collaborator

@lsviben lsviben left a comment

Choose a reason for hiding this comment

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

Makes sense, thanks for the fix!

@lsviben lsviben merged commit f56c8c1 into crossplane-contrib:main Jan 8, 2025
6 checks passed
Copy link

github-actions bot commented Jan 8, 2025

Successfully created backport PR #263 for release-0.19.

Copy link

github-actions bot commented Jan 8, 2025

Successfully created backport PR #264 for release-0.20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants