Skip to content

Conversation

@Utkarsh-Aga
Copy link
Contributor

Description

Allow parenthsis to be used.

Issues Resolved

Resolves #5121

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Utkarsh Agarwal <126544832+Utkarsh-Aga@users.noreply.github.com>
private final Set<EventKeyFactory.EventAction> supportedActions;
private static final Pattern INVALID_KEY_CHARS_PATTERN =
Pattern.compile("[^A-Za-z0-9._~@/\\[\\]-]");
Pattern.compile("[^A-Za-z0-9._~@/\\[\\]\\(\\)-]");
Copy link
Collaborator

Choose a reason for hiding this comment

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

are we looking to enforce a pair to be present? or just one open or closed parentheses should still be allowed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Since OpenSearch allows the Key Name to have only one parentheses, so did not have the pair check.

Copy link
Collaborator

Choose a reason for hiding this comment

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

it could help to add this case to the testing scenarios

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.

[BUG] rename_keys processor: json pointers with escaped syntax fail to validate

2 participants