Comments (8)
Thanks for you input @alexkuc given you looking for answers I guess making the PR will be difficult. I’ll see when I have time available to sort it. Any specific question that is blocking you now?
from jsonmapper.
@DannyvdSluijs thank you for the fast response. I am currently going over source code of the existing middleware. I'll let you know if I get stuck with something. Thank you again.
from jsonmapper.
@DannyvdSluijs I managed to put something myself together. I think I got the general gist of the approach. Would you be open to PR to update docs?
from jsonmapper.
PR are more than welcome. That is the power of open source.
from jsonmapper.
@DannyvdSluijs I was about to start writing new README page but I just realised something so wanted to double check with you:
JsonMapper/src/JsonMapperInterface.php
Line 11 in 54ac9f7
As far as I can tell JsonMapperInterface
does not really enforce middleware type, it's purely by convention that middleware should use MiddlewareInterface
and MiddlewareLogicInterface
?
from jsonmapper.
Hi @alexkuc
I've been busy so you'll have to excuse me for my late reply.
Your assumptions are correct. This has been an oversight which i want to address at some point but since that would impact others as well that should only be done in a new mayor release.
from jsonmapper.
@alexkuc I wanted to check with you if you still need any help, either in understanding JsonMapper or in opening a PR?
from jsonmapper.
@DannyvdSluijs all is good
from jsonmapper.
Related Issues (20)
- Cannot lookup property of namespace in parent class HOT 6
- Ensure that the JSON object is complete HOT 3
- Psalm is not happy about your example PHP class. HOT 2
- Namespace resolving is unable to resolve when using partial use combined with nested namespace in PHPdoc
- UnexpectedValueException : Value 'DateTime' is not part of the enum JsonMapper\Enums\ScalarType HOT 7
- Make it compatible with Laravel 9 HOT 4
- Undefined array key 0 with php 8.1 and readonly HOT 4
- withNativePhpClassesAdded does not honor null or nativeclass HOT 2
- Collection Mapping does not work with more than one item HOT 14
- Add enum support HOT 3
- Fatal error when mapper expects array of objects but json field is object HOT 3
- Private properties of parent classes are not taken into account when mapping data.
- Starting with v2.15.0 constructor for nested array of objects is not called HOT 1
- Update issue template to use forms
- TypeError: JsonMapper\Middleware\CaseConversion::getReplacementKey(): Argument #1 ($key) must be of type string, int given
- Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions/checkout@v2. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.
- Public properties comments are not taking into account when mapping. HOT 1
- Add Support for Enums HOT 7
- Add support to map from key/value object HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsonmapper.