1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-07-16 20:16:25 +02:00

88 Commits

Author SHA1 Message Date
Filip Halaxa
778103ddce Fixes #125 2025-06-15 13:58:08 +02:00
Filip Halaxa
f726e82e0c Revert "Fixes #117"
This reverts commit 527ab492bd.
2025-04-24 19:05:17 +02:00
Filip Halaxa
527ab492bd Fixes #117 2024-12-01 15:14:55 +01:00
Filip Halaxa
644fe90245 Fix build 2024-11-22 22:20:02 +01:00
Filip Halaxa
e96be16d0c cs-fix 2024-11-21 17:51:39 +01:00
Filip Halaxa
85aeb9ae91 Parser::getPosition() works inside nested collections 2024-11-20 21:55:21 +01:00
Filip Halaxa
610a127390 Removed empty test 2024-11-20 13:03:43 +01:00
Filip Halaxa
ef546c57a8 Merged master into recursive 2024-11-20 12:41:31 +01:00
Filip Halaxa
cf83311f16 NestedIterator replaced with RecursiveItems 2024-11-20 12:40:45 +01:00
Filip Halaxa
fd46d467bd PHPStan fixes + testRecursiveIterationYieldsNestedIterator 2023-11-30 17:41:20 +01:00
Filip Halaxa
27ba49f128 Merge branch 'master' into recursive 2023-11-29 23:16:33 +01:00
Filip Halaxa
5c1d6c1d63 Issue #108 test (url with utf-8 decoding) 2023-11-18 21:46:57 +01:00
Filip Halaxa
bda567afde Finishing of an unfinished sub-iterator for convenience 2022-10-23 22:11:25 +02:00
Filip Halaxa
aba5205393 Build fixed 2022-10-22 20:20:17 +02:00
Filip Halaxa
1466ddbf02 \JsonMachineTest\ParserTest::testZigZagRecursiveIteration 2022-10-22 11:48:27 +02:00
Filip Halaxa
b408762084 Working 2022-10-22 11:22:50 +02:00
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