Skip to content

Conversation

@elwafa
Copy link
Member

@elwafa elwafa commented Feb 12, 2025

  • Updated the JSON path validation regex to allow array indexing (e.g., $.data[0].attribute).
  • Ensured compatibility with dot notation for nested objects (e.g., $.data.object.attribute).
  • Improved validation to support mixed array and object paths (e.g., $.data[0].nested[2].value).
  • Added stricter checks to prevent malformed paths.

Closes #20

- Updated the JSON path validation regex to allow array indexing (e.g., `$.data[0].attribute`).
- Ensured compatibility with dot notation for nested objects (e.g., `$.data.object.attribute`).
- Improved validation to support mixed array and object paths (e.g., `$.data[0].nested[2].value`).
- Added stricter checks to prevent malformed paths.
@elwafa elwafa merged commit 60dbc58 into release/v0.9.1 Feb 12, 2025
@elwafa elwafa deleted the feature/json-extractor-array-indexing-validation branch February 12, 2025 19:46
@elwafa elwafa mentioned this pull request Feb 12, 2025
3 tasks
elwafa added a commit that referenced this pull request Feb 12, 2025
* preparing for release v0.9.1

* feat(validation): Support array indexing in JSON path validation (#21)

* feat(validation): Support array indexing in JSON path validation

- Updated the JSON path validation regex to allow array indexing (e.g., `$.data[0].attribute`).
- Ensured compatibility with dot notation for nested objects (e.g., `$.data.object.attribute`).
- Improved validation to support mixed array and object paths (e.g., `$.data[0].nested[2].value`).
- Added stricter checks to prevent malformed paths.

* update engine version
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