Skip to content

Reimplement JsonMapper #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 28 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f7eb2c6
Reimplement JsonMapper
reimic Mar 6, 2024
3e04ddb
Remove `remove_utf8_bom()`
reimic Mar 12, 2024
da346af
Externalize custom factory configuration
reimic Mar 12, 2024
55cbdba
Drop AnnotationMap and other small changes
reimic Mar 12, 2024
129d921
Drop PropertyBuilder from DocBlockAnnotations
reimic Mar 12, 2024
611627d
Drop PropertyBuilder from DocBlockAnnotations
reimic Mar 12, 2024
ca12322
Clear DocBlockAnnotations
reimic Mar 12, 2024
afb1575
Expose evaluators, pass factories as an array of factory_name to closure
reimic Mar 12, 2024
c63f5a3
Pass mapper to factory only when it is required
reimic Mar 12, 2024
457304f
Clean up
reimic Mar 12, 2024
0eefbbd
Drop PropertyMapper, Drop JsonEvaluatorInterface
reimic Mar 12, 2024
51610a4
Drop PropertyBuilder
reimic Mar 13, 2024
aaf5f01
Drop ArrayInformation, PropertyType
reimic Mar 13, 2024
328d1a5
Clean up
reimic Mar 13, 2024
91ae08b
Add tests
reimic Mar 13, 2024
9663b17
Delete NamespaceResolver, PropertyMap, PropertyMapperInterface
reimic Mar 13, 2024
6562cc7
Clean up
reimic Mar 13, 2024
12bbf48
Fix union types issues
reimic Mar 13, 2024
1be7bc5
Add test
reimic Mar 13, 2024
271a88e
Fix model autogeneration bug, test mapper and parser
reimic Mar 16, 2024
b968df8
Comment out test failing due to Windows compatibility issue in runner
reimic Mar 16, 2024
d215465
Fix bug, find next bug to fix
reimic Mar 16, 2024
bef2e23
Fix bug, add bug for later
reimic Mar 16, 2024
f9d67a6
Apply review suggestions
reimic Mar 17, 2024
8ddb3c8
Do not initialized generated model properties as "null" since they're…
adamziel Mar 17, 2024
7174d72
Restore the original if/elseif structure in autogenerate_models
adamziel Mar 17, 2024
8aeb4f3
Replace list<> with regular PHP type annotations
adamziel Mar 17, 2024
c98093c
Clean up structure, formatting, comments
adamziel Mar 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"prefer-stable": true,
"require": {
"json-mapper/json-mapper": "*",
"symfony/event-dispatcher": "*",
"symfony/filesystem": "*",
"symfony/process": "*",
Expand All @@ -10,7 +9,8 @@
"pimple/pimple": "*",
"psr/simple-cache": "*",
"opis/json-schema": "*",
"ext-json": "*"
"ext-json": "*",
"nikic/php-parser": "v4.18.0"
},
"require-dev": {
"phpunit/phpunit": "*",
Expand Down Expand Up @@ -46,6 +46,11 @@
"src/WordPress/Streams/stream_str_replace.php"
]
},
"autoload-dev": {
"classmap": [
"tests/"
]
},
"scripts": {
"phpcs": "phpcs --standard=WordPress"
}
Expand Down
Loading