1
0
mirror of https://github.com/halaxa/json-machine.git synced 2025-01-17 21:18:23 +01:00

476 Commits

Author SHA1 Message Date
Filip Halaxa
c549c323e5 make cs-fix 2022-01-23 12:38:20 +01:00
Filip Halaxa
caaa4d7e73 Fixed failing tests because of strpos() behaviour for PHP<8 2022-01-23 12:35:26 +01:00
Filip Halaxa
0498cb4af8 Improved exception messages 2022-01-22 22:19:40 +01:00
Filip Halaxa
1394a1b30e CHANGELOG 2022-01-22 22:09:35 +01:00
Filip Halaxa
592e71ba92 \JsonMachine\Parser::getJsonPointer(): Keep pre-PR signature 2022-01-22 22:08:34 +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
4b158928ca REAMDE typo 2022-01-22 21:38:20 +01:00
Filip Halaxa
45f4fc2e59 CHANGELOG updated 2022-01-22 21:34:25 +01:00
Filip Halaxa
0720de6839 REAMDE reflects new functionality 2022-01-22 21:13:34 +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
9fa05acd41 Object properties should not be unset 2022-01-22 14:40:10 +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
Filip Halaxa
90d11ecb96 Proper deprecation of Parser::getJsonPointerPaths() 2022-01-20 18:47:26 +01:00
Filip Halaxa
19768a44fc Revert "Amended pointer check with pointers array"
This reverts commit 460d2624c4ea9e9e01fe8ee1a4f4afbfa31f3b70.
2022-01-20 18:37:05 +01:00
Filip Halaxa
8e02affedf Rename isSingleJsonPointer to hasSingleJsonPointer 2022-01-20 18:20:30 +01:00
Filip Halaxa
718bb5a5c5 Parser: Factor out decode and encode methods + some renames 2022-01-20 18:17:55 +01:00
Filip Halaxa
59c25097b0 make cs-fix 2022-01-20 17:00:56 +01:00
Florian Wolfsjäger
a8272d4125
Renamed JSON pointer variable
Always return the first passed pointer in getJsonPointer()
2022-01-20 15:50:16 +01:00
Florian Wolfsjäger
460d2624c4
Amended pointer check with pointers array 2022-01-20 15:02:30 +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
6e82d49bc6
Added method to get all JSON pointers 2022-01-18 19:14:32 +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
e6fe9d7f21
Update README.md 2022-01-17 11:50:33 +01:00
Filip Halaxa
ba85214051 README: iterator_count() 2022-01-15 18:29:01 +01:00
Filip Halaxa
230183452a ValidJsonPointersTest::testToArrayReturnsJsonPointers 2022-01-14 21:15:29 +01:00
Filip Halaxa
b1a21ca8cf make cs-fix 2022-01-14 20:40:07 +01:00
Filip Halaxa
0c33b25265 JSON Pointer validation does not ignore duplicate paths 2022-01-14 20:37:31 +01:00
Filip Halaxa
1386bafa25 Simplified condition 2022-01-14 15:11:18 +01:00
Filip Halaxa
996a7b001b Regexp speed optimization 2022-01-14 15:09:33 +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
Filip Halaxa
d2fc7ebcb5 Closures do not need to be static 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
d922e91550 Method order 2022-01-12 21:19:19 +01:00
Filip Halaxa
b85e1b9698 make cs-fix 2022-01-12 21:14:29 +01:00
Filip Halaxa
f9ad09247d Validating method split in two. 2022-01-12 21:12:49 +01:00
Filip Halaxa
228054cd2d Methods extracted for better readability 2022-01-12 20:45:26 +01:00
Filip Halaxa
5d451bac93 Extract token type declarations to separate function for better readability. Without performance hit. 2022-01-12 20:01:05 +01:00
Filip Halaxa
c8978eb448
Update README.md
Big O complexity info
2022-01-10 23:04:12 +01:00
Filip Halaxa
ac1ae06f96 Merge branch 'master' into pr-61-multiple-json-pointers 2022-01-10 16:20:07 +01:00