Skip to content

Client model generated from type object with additionalProperties not correctly deserialized #1852

Answered by uvoigt
uvoigt asked this question in Q&A
Discussion options

You must be logged in to vote

It works if I declare the original LocStringDto which leads to the generated OpenAPI this way

@Serdeable
public class LocStringDto extends HashMap<String, String> {
}

OpenAPI is then

        name:
          type: object
          additionalProperties: true

for a property of type LocStringDto which is then correctly written and read

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by altro3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant