Skip to content
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

Jackson @JsonView deserialization support for request bodies #35871

Closed
xuanshenbo opened this issue Sep 12, 2023 · 7 comments · Fixed by #43849
Closed

Jackson @JsonView deserialization support for request bodies #35871

xuanshenbo opened this issue Sep 12, 2023 · 7 comments · Fixed by #43849
Labels
area/jackson Issues related to Jackson (JSON library) area/rest kind/enhancement New feature or request
Milestone

Comments

@xuanshenbo
Copy link

Description

Quarkus already supports @JsonView for response bodies. The same can also be applied to request bodies as @JsonView can be used on method parameters.

@POST
@Produces(MediaType.APPLICATION_JSON)
public Response create(@JsonView(Views.Public.class) User user) {
    return Response.status(CREATED).entity(user).build();
}

Implementation ideas

No response

@xuanshenbo xuanshenbo added the kind/enhancement New feature or request label Sep 12, 2023
@quarkus-bot
Copy link

quarkus-bot bot commented Sep 12, 2023

/cc @geoand (jackson), @gsmet (jackson)

@quarkus-bot quarkus-bot bot added the area/jackson Issues related to Jackson (JSON library) label Sep 12, 2023
@geoand
Copy link
Contributor

geoand commented Sep 12, 2023

I think it makes sense.

@lohkare
Copy link

lohkare commented Oct 8, 2024

Any updates on this?

@geoand
Copy link
Contributor

geoand commented Oct 8, 2024

Not yet, but if you are willing to help out, we can certainly point you in the right direction

@lohkare
Copy link

lohkare commented Oct 8, 2024

Sure! I'd be happy to help!

@geoand
Copy link
Contributor

geoand commented Oct 8, 2024

Cool!

I will get back to you in a few days as I am travelling this week

@geoand
Copy link
Contributor

geoand commented Oct 14, 2024

I actually went ahead and added this one myself because it turned out to be more a shortcoming of the code than anything else

gastaldi added a commit that referenced this issue Oct 14, 2024
@quarkus-bot quarkus-bot bot added this to the 3.16 - main milestone Oct 14, 2024
bschuhmann pushed a commit to bschuhmann/quarkus that referenced this issue Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/jackson Issues related to Jackson (JSON library) area/rest kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants