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

Fix for record component annotations on fields with JsonProperty annotations #4795

Conversation

richard-lindsay
Copy link
Contributor

Add support for record classes with @JsonProperty annotations that do not match the field names when getting the component annotations.

When these two differ a NoSuchMethodException is throw. Instead access the declared method using the name of the primary member.

@frantuma frantuma merged commit dfca14c into swagger-api:master Dec 9, 2024
6 checks passed
@frantuma
Copy link
Member

frantuma commented Dec 9, 2024

Thanks!

@richard-lindsay richard-lindsay deleted the bug/support-json-properties-on-record-component-annotations branch December 9, 2024 14:23
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