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

[kotlin-spring] Move Jackson annotation from field to getter #10825

Merged
merged 2 commits into from
Jan 2, 2023

Conversation

juherr
Copy link
Contributor

@juherr juherr commented Nov 9, 2021

In some cases, Jackson will duplicate entries when the annotation is on the field.
The behavior is expected, see FasterXML/jackson-databind#1609

Also, a similar issue exists on the java generator: #5705

Ping @jimschubert

@wing328
Copy link
Member

wing328 commented Nov 20, 2021

Thanks for the PR. Please follow step 3 in the PR checklist to update the samples so that the CI can verify the change.

cc @jimschubert (2017/09) ❤️, @dr4ke616 (2018/08) @karismann (2019/03) @Zomzog (2019/04) @andrewemery (2019/10) @4brunu (2019/11) @yutaka0m (2020/03)

@juherr
Copy link
Contributor Author

juherr commented Nov 22, 2021

@wing328 Thanks for the reminder. Step 3, done.

@4brunu
Copy link
Contributor

4brunu commented Nov 22, 2021

I don't have much experience with jackson, but I think we already merge something similar to kotlin client.

@jigarshah
Copy link

Is there a reason this is not merged ? quite simple solution to strange api spec (not invalid).

@4brunu
Copy link
Contributor

4brunu commented Feb 28, 2022

@juherr could you please fix the conflicts? Thanks

@volsusdev
Copy link
Contributor

Hi @juherr, thanks for this fix. Would it be possible to get it merged?

In some case, Jackson will duplicate entries when the annotation is on field
See FasterXML/jackson-databind#1609
@juherr juherr force-pushed the bugfix/kotlin-spring-jackson branch from 4d1fa15 to b42b38c Compare November 18, 2022 14:13
@juherr
Copy link
Contributor Author

juherr commented Nov 18, 2022

@volsusdev PR rebased

@volsusdev
Copy link
Contributor

volsusdev commented Jan 2, 2023

Thanks a lot @juherr. Who is able to merge it, maybe @wing328 or @4brunu?

@4brunu 4brunu merged commit 921199b into OpenAPITools:master Jan 2, 2023
@volsusdev
Copy link
Contributor

Awesome, thank you guys. Looking forward for the next release including this fix 🙂

@wing328 wing328 added this to the 6.3.0 milestone Jan 20, 2023
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.

5 participants