Skip to content

Conversation

@kddejong
Copy link
Contributor

Issue #, if available:

Description of changes:

  • Implement recursive diffJson function to handle arrays, objects, and primitives
  • Special handling for Tags arrays (Key/Value pairs) - diffs by key
  • Shows dot notation paths for nested properties (e.g., Tags.Environment)
  • Gracefully falls back to string comparison for non-JSON values
  • Properly formats added/removed/modified values with arrow notation

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

- Implement recursive diffJson function to handle arrays, objects, and primitives
- Special handling for Tags arrays (Key/Value pairs) - diffs by key
- Shows dot notation paths for nested properties (e.g., Tags.Environment)
- Gracefully falls back to string comparison for non-JSON values
- Properly formats added/removed/modified values with arrow notation
- Test array and primitive additions/removals
- Test AfterContext/BeforeContext parsing for Add/Remove actions
- Test invalid JSON handling in context parsing
@kddejong kddejong merged commit 7d5472f into aws-actions:master Jan 29, 2026
1 check passed
@kddejong kddejong deleted the develop branch January 29, 2026 23:30
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.

1 participant