Commit 60dbc58
authored
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.1 parent 49ca4db commit 60dbc58
File tree
2 files changed
+12
-2
lines changed- src/Extractors
- tests/Units
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | 54 | | |
| |||
67 | 70 | | |
68 | 71 | | |
69 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
70 | 79 | | |
71 | 80 | | |
72 | 81 | | |
| |||
0 commit comments