Skip to content

Conversation

Jenson3210
Copy link
Contributor

Summary

Added TOML table row manipulation recipes to enable programmatic modification of TOML array tables, with support for matching, merging, replacing, and deleting rows.

New Recipes

  • ChangeTableRowValue - Change a specific property value in a matching table row
  • DeleteTableRow - Delete table rows matching specified criteria with regex support
  • MergeTableRow - Merge key-value pairs into existing rows or insert new ones, with null value support for removal of keys
  • ReplaceTableRow - Replace entire table rows with other rows

Utilities

  • TableRowMatcher - Shared utilities for matching and extracting values from table rows with regex support
  • SemanticallyEqual - Recursive equality checking for TOML elements that ignores whitespace and formatting

@Jenson3210 Jenson3210 self-assigned this Oct 15, 2025
@Jenson3210 Jenson3210 added the enhancement New feature or request label Oct 15, 2025
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Oct 15, 2025
@Jenson3210 Jenson3210 marked this pull request as draft October 15, 2025 14:07
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@openrewrite openrewrite deleted a comment from github-actions bot Oct 15, 2025
@Jenson3210 Jenson3210 marked this pull request as ready for review October 16, 2025 06:54
@Jenson3210 Jenson3210 requested a review from timtebeek October 16, 2025 06:54
@Jenson3210 Jenson3210 moved this from In Progress to Ready to Review in OpenRewrite Oct 16, 2025
Copy link
Member

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

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

Nice work! Approved already, but it looks like we could remove some of those explicit validation methods still, as I think we validate that when assigning values to option annotated fields.

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

Labels

enhancement New feature or request

Projects

Status: Ready to Review

Development

Successfully merging this pull request may close these issues.

2 participants