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

Backend upgrade 4.x #175

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Backend upgrade 4.x #175

wants to merge 9 commits into from

Conversation

montesmoci
Copy link
Collaborator

@montesmoci montesmoci commented Mar 19, 2024

Required: Install Java 17

@HootDunk
Copy link
Contributor

This will be a nice QOL enhancement 👍 I've tried to use a record so many times only to remember that we're on java 11.

@montesmoci montesmoci marked this pull request as ready for review March 20, 2024 15:13
private List<ServiceDefinitionAttributeDTO> buildUserResponseAttributesFromRequest(HttpRequest<?> request, List<ServiceDefinitionAttribute> serviceDefinitionAttributes) {

Argument<Map<String, String>> type = Argument.mapOf(String.class, String.class);
Optional<Map<String, String>> body = request.getBody(type);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HootDunk After migration, I found that body was null. I suspect it is due to the following breaking change outlined in https://docs.micronaut.io/latest/guide/#_body_annotation_on_controller_parameters .

I resorted to deserializing the request body to a Map so that we have access to the attribute[attrValue] form keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants