Skip to content

Conversation

@blaghed
Copy link

@blaghed blaghed commented Nov 17, 2025

Fixes #22345

import com.fasterxml.jackson.annotation.JsonFormat;
{{/additionalPropertiesType}}
{{/model}}
{{/models}}
Copy link
Member

Choose a reason for hiding this comment

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

thanks for the PR

if there more than 1 model in the spec, would this result in duplicated imports?

Copy link
Author

Choose a reason for hiding this comment

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

It does, yes. But I couldn't find that to be much of an issue.

Copy link
Member

Choose a reason for hiding this comment

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

did you test this fix locally to confirm it works for your use cases?

did you follow step 3 to update the samples?

Copy link
Member

Choose a reason for hiding this comment

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

please use -first (or -last) to only show the import once only

ref:

{{#vars}}{{#-first}} this is the first element {{.}} {{/-first}}{{/vars}}

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.

[BUG][JAVA][resteasy][jaxrs-spec] additionalProperties extends HashMap causes deserialization issues

2 participants