-
-
Notifications
You must be signed in to change notification settings - Fork 127
Improve body collection support #524
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
Comments
And what is the message? Did you see any possible improvement? |
Hi, @decebals !
The conversion is done but not with the expected result. See the image below.
Not until now. I believe the classes in Pippo to start looking at this are: |
@mhagnumdw What is the status of this issue?
Is it possible to use something like this in controller? Is it possible to extract the |
Hi @decebals ! I took a good look at this. It is not such a simple change. Each framework has its own way of working with generic types. Gson uses TypeToken, Fastjson uses TypeReference, Jackson TypeReference, and so on. We have to figure out the type of the parameter defined in the controller method to reach the ContentTypeEngine. Currently only the class (raw type) arrives, but if it is generic the parameters do not arrive in the engine. (Calm down, I have a draft :)) I created a local draft with a possible solution. I have already tested using Gson, but in theory it should work for the other engines. I want to go further on this after feedback. It is easier to see what I said here by looking at the code. Can I submit a big draft PR? |
Sure. Why not :). Also, I am very very curious to see other applications (except for the ones I wrote) that are using Pippo. Now, I am trying to switch from plain routes and to controllers. I love to see how some aspects as security, ajax, templating are used. |
I await your feedback! So that we can solve this together! Pippo, onward and upward! 🚀🚀🚀 (I don't know if this is right in English 😄)
|
@mhagnumdw Can you send me an email (see my gmail address in my GitHub's profile). I want to talk more about how you use PIppo but I don't want to hijack this thread. Thanks! |
Any ongoing solutions or ideas for this?
pippo/pippo-controller-parent/pippo-controller/src/main/java/ro/pippo/controller/extractor/BodyExtractor.java
Line 43 in cb5ccb4
This works as expected.
But that does not
The text was updated successfully, but these errors were encountered: