1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-02-22 07:02:30 +01:00

144 Commits

Author SHA1 Message Date
Filip Halaxa
7b2da35f32 Single decode() method 2022-02-03 13:43:25 +01:00
Filip Halaxa
55d2c86880 ItemDecoder::decodeInternalKey() and ValidStringResult deleted. 2022-01-31 14:14:34 +01:00
Filip Halaxa
e11614b94d Fixed JSON Pointer matching to be RFC compliant. 2022-01-31 13:56:24 +01:00
Filip Halaxa
a96728af77 ExtJsonDecoding added to covered code 2022-01-27 20:33:25 +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
6622299be5 Test for Items::getJsonPointers() 2022-01-26 14:37:07 +01:00
Filip Halaxa
46d068252b Tests for Items::getMatchedJsonPointer() and Items::getCurrentJsonPointer() 2022-01-26 14:31:55 +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
f29c31bdf4 make cs-fix 2022-01-22 14:35:26 +01:00
Filip Halaxa
6126020b20 Options validation factored out to separate ItemsOptions class 2022-01-22 14:33:25 +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
0d92dafb0b
Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	src/Parser.php
2022-01-20 14:01:40 +01:00
Filip Halaxa
4cbe6107e3 Code style: added 'not_operator_with_space' rule. 2022-01-20 12:39:08 +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
230183452a ValidJsonPointersTest::testToArrayReturnsJsonPointers 2022-01-14 21:15:29 +01:00
Filip Halaxa
0c33b25265 JSON Pointer validation does not ignore duplicate paths 2022-01-14 20:37:31 +01:00
Filip Halaxa
c1c55608d4 Useless comment deleted 2022-01-13 14:57:46 +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
Filip Halaxa
3c98e16441 Removed JsonMachine class 2022-01-08 15:18:22 +01:00
Filip Halaxa
7857b3229f Removed deprecated functions 2022-01-08 15:09:45 +01:00
Filip Halaxa
163225e7e6 LexerTest::testAnyPossibleChunkSplit supports both debug modes 2022-01-07 09:21:56 +01:00
Filip Halaxa
af08117952 LexerTest::testAnyPossibleChunkSplit 2022-01-06 16:41:24 +01:00
Filip Halaxa
436ab4b0e7 ChunkDecoder renamed to ItemDecoder to better reflect the purpose. 2022-01-06 15:36:10 +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
4467645dcb Lexer with debug mode split to Lexer and DebugLexer (SRP) 2021-12-29 16:01:37 +01:00
Filip Halaxa
7df0601d8a Performance: Lookup non-significant bytes early + code cleanup 2021-12-29 12:51:27 +01:00
Filip Halaxa
101b60c025 Lexer performance improvements (+-9% gain) 2021-12-26 12:49:48 +01:00
Filip Halaxa
7774a84651 Decoders migrated to ChunkDecoder interface 2021-12-23 17:49:46 +01:00
Filip Halaxa
89f099d2de Keep assoc decoding in JsonMachine 2021-12-23 13:02:31 +01:00
Filip Halaxa
dbe0aabd1e Muted user depracations in functions 2021-12-22 14:47:07 +01:00
Filip Halaxa
8a7bab6c28 Revert "Removed deprecated functions httpClientChunks() and objects()"
This reverts commit 597943aae999bfaec4165bdfc4abb528e5808c76.
2021-12-22 14:45:30 +01:00
Filip Halaxa
ebd5a6f060 Added options to Items + JsonMachine class deprecated 2021-12-22 12:44:27 +01:00