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

Handle JSON arrays in json.Canonicalize #347

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

ulucinar
Copy link
Collaborator

Description of your changes

This PR adds support for handling JSON arrays in addition to objects in json.Canonicalize.

I have:

  • Read and followed Upjet's contribution process.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Tested in the context of crossplane-contrib/provider-upjet-aws#1130 with the AccessPolicy.opensearchserverless resource. The policy document for that resource is a JSON array.

Signed-off-by: Alper Rifat Ulucinar <[email protected]>
Copy link
Member

@sergenyalcin sergenyalcin left a comment

Choose a reason for hiding this comment

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

Thanks @ulucinar LGTM!

@ulucinar ulucinar merged commit 796fd66 into crossplane:main Feb 15, 2024
7 checks passed
@ulucinar ulucinar deleted the handle-slices branch February 15, 2024 08:31
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.

2 participants