Filip Halaxa
|
6887c76d7e
|
Fixed the failing test caused by legacy comparison before PHP 8
|
2022-10-03 20:18:12 +02:00 |
|
Filip Halaxa
|
de0ae2029e
|
Merge branch 'master' into fix/fix-subtrees-parsing
|
2022-09-30 17:25:47 +02:00 |
|
Filip Halaxa
|
fb029ecc5b
|
make cs-fix
|
2022-09-29 16:07:16 +02:00 |
|
Filip Halaxa
|
00d54a75b2
|
Meaningful error on invalid token. Fixes #86
|
2022-09-29 16:04:15 +02:00 |
|
Andrea Marco Sartori
|
6aa32b3501
|
Update tests for subtrees using wildcards
|
2022-05-23 23:58:01 +10:00 |
|
Filip Halaxa
|
3302a16398
|
Removed Parser::getJsonPointer() and Parser::getJsonPointerPath()
|
2022-02-04 16:22:19 +01:00 |
|
Filip Halaxa
|
5887899134
|
Fixed another bug in TokensWithDebugging::getPosition()
|
2022-02-04 15:30:03 +01:00 |
|
Filip Halaxa
|
ff02dcc4b6
|
PHP strict types required
|
2022-02-03 21:56:47 +01:00 |
|
Filip Halaxa
|
a1be67c3b6
|
make cs-fix
|
2022-02-03 16:18:11 +01:00 |
|
Filip Halaxa
|
c0d30593d4
|
Lexer renamed to Tokens
|
2022-02-03 16:15:56 +01:00 |
|
Filip Halaxa
|
7a601c1b16
|
SytnaxError -> SyntaxErrorException
|
2022-02-03 16:01:17 +01:00 |
|
Filip Halaxa
|
e11614b94d
|
Fixed JSON Pointer matching to be RFC compliant.
|
2022-01-31 13:56:24 +01:00 |
|
Filip Halaxa
|
0d28290d93
|
Added @covers annotations in tests
|
2022-01-27 13:05:57 +01:00 |
|
Filip Halaxa
|
d804498649
|
Tests radability
|
2022-01-27 13:05:57 +01:00 |
|
Filip Halaxa
|
e68452db63
|
Added test cases to testGetCurrentJsonPointer and testGetMatchedJsonPointer
|
2022-01-25 21:56:28 +01:00 |
|
Filip Halaxa
|
27f93442c8
|
SRP: Split test method into two
|
2022-01-25 13:12:06 +01:00 |
|
Filip Halaxa
|
0498cb4af8
|
Improved exception messages
|
2022-01-22 22:19:40 +01:00 |
|
Filip Halaxa
|
3ec236d6b0
|
Parser::getJsonPointerPath() reverted to pre-PR state to keep the functionality during deprecation
|
2022-01-22 22:04:39 +01:00 |
|
Filip Halaxa
|
3b66b0856f
|
Added edge test cases proving correct order of decoding and encoding of JSON Pointer
|
2022-01-22 15:40:59 +01:00 |
|
Filip Halaxa
|
151e46b9ee
|
testGetJsonPointers()
|
2022-01-20 19:10:38 +01:00 |
|
Filip Halaxa
|
f3bc7ba589
|
Backwards compatible Parser::getJsonPointer() behavior
|
2022-01-20 19:05:51 +01:00 |
|
Filip Halaxa
|
c7abb78f61
|
Fixed some stuff in tests
|
2022-01-20 18:55:31 +01:00 |
|
Florian Wolfsjäger
|
dc763526bd
|
Fix JSON stream parser test for root JSON pointer
|
2022-01-19 15:27:36 +01:00 |
|
Florian Wolfsjäger
|
80779cedc0
|
Fix test for root JSON pointer
|
2022-01-19 09:41:09 +01:00 |
|
Filip Halaxa
|
428bb840ab
|
Added edge cases to ParserTest::dataGetJsonPointer
|
2022-01-18 20:32:05 +01:00 |
|
Florian Wolfsjäger
|
b6f6482901
|
Added methods getCurrentJsonPointer & getMatchedJsonPointer
Deprecated method getJsonPointer
Added tests for getCurrentJsonPointer & getMatchedJsonPointer
|
2022-01-17 12:36:15 +01:00 |
|
Filip Halaxa
|
d0b3e84e42
|
make cs-fix
|
2022-01-13 14:50:33 +01:00 |
|
Filip Halaxa
|
41cc1d6033
|
JSON Pointer validation logic moved to separate class
|
2022-01-13 14:47:31 +01:00 |
|
Filip Halaxa
|
9547ec9e44
|
JSON Pointer intersection tests extended.
|
2022-01-12 22:01:21 +01:00 |
|
Florian Wolfsjäger
|
9aa2b1f7da
|
Added check variable $singleJsonPointer
Clarified variable/method names
Fixed return type of Parser.getJsonPointer()
|
2022-01-12 21:58:11 +01:00 |
|
Filip Halaxa
|
b85e1b9698
|
make cs-fix
|
2022-01-12 21:14:29 +01:00 |
|
Filip Halaxa
|
ac1ae06f96
|
Merge branch 'master' into pr-61-multiple-json-pointers
|
2022-01-10 16:20:07 +01:00 |
|
Filip Halaxa
|
904ee8ed1f
|
Modified @Symfony rules as the code style
|
2022-01-10 16:07:19 +01:00 |
|
Florian Wolfsjäger
|
7017fb8ecd
|
Merge remote-tracking branch 'upstream/master'
# Conflicts:
# src/Items.php
# src/JsonMachine.php
# src/Parser.php
|
2022-01-10 10:28:22 +01:00 |
|
Filip Halaxa
|
5738c463f6
|
Default decoding structure of Parser is object
|
2022-01-08 15:24:06 +01:00 |
|
Florian Wolfsjäger
|
a48422708a
|
Merge remote-tracking branch 'upstream/master'
# Conflicts:
# README.md
# src/JsonMachine.php
# src/Parser.php
|
2022-01-03 13:25:29 +01:00 |
|
Filip Halaxa
|
89f099d2de
|
Keep assoc decoding in JsonMachine
|
2021-12-23 13:02:31 +01:00 |
|
Filip Halaxa
|
51ed070373
|
JsonMachine renamed to Items
|
2021-12-21 16:13:39 +01:00 |
|
Filip Halaxa
|
f67ffb40ea
|
Object as default decoding structure instead of array
|
2021-12-21 15:44:10 +01:00 |
|
Florian Wolfsjäger
|
363263366b
|
Also check for the actual current path (without wildcard) when matching paths
Always track the current path with wildcards as well
Added Unittest for JSON path pointers with & without wildcards
|
2021-12-15 13:52:54 +01:00 |
|
Filip Halaxa
|
71dc72ede2
|
Added test case with alternating JSON pointers
|
2021-12-15 12:25:53 +01:00 |
|
Florian Wolfsjäger
|
6849f3cf15
|
Check for wildcards when building JSON pointer paths
Consider wildcards when checking for intersecting paths
Added Unittest for intersecting paths
|
2021-12-13 20:30:38 +01:00 |
|
Florian Wolfsjäger
|
5f44231b4e
|
Extended JSON pointer to allow multiple values
Amended Parser Unittest
|
2021-12-13 19:36:10 +01:00 |
|
Filip Halaxa
|
98a6e848cc
|
Test case from pr #62 for nested items
|
2021-11-16 16:15:55 +01:00 |
|
Filip Halaxa
|
99cfff857a
|
cherry pick: Fixed test methodics to cover cases when duplicate keys are yielded
|
2021-11-16 16:04:54 +01:00 |
|
Filip Halaxa
|
41f517ad8e
|
Added test cases for array-nested iteration
|
2021-05-04 18:24:16 +02:00 |
|
Andrea Marco Sartori
|
62bc6d03d6
|
Let JSON pointer iterate through values in nested arrays
|
2021-05-01 20:09:01 +10:00 |
|
Filip Halaxa
|
f8b1827b2a
|
Failing test
|
2021-04-06 11:34:02 +02:00 |
|
Filip Halaxa
|
69a7a6970c
|
Getting a scalar value from an array using json pointer
|
2020-12-23 18:22:09 +01:00 |
|
Filip Halaxa
|
1230023e91
|
Getting scalar value from object also provides the key if necessary
|
2020-12-19 22:00:36 +01:00 |
|