Skip to content

Conversation

@SentryMan
Copy link
Collaborator

Now will read the getter/setter methods using the property name if no match if found for the field name.

This was prompted by
image

now will read the getter/setter methods using the property name if no match if found for the field name
@SentryMan SentryMan requested a review from rbygrave March 2, 2025 03:04
@SentryMan SentryMan self-assigned this Mar 2, 2025
@SentryMan SentryMan added the enhancement New feature or request label Mar 2, 2025
@SentryMan SentryMan enabled auto-merge (squash) March 2, 2025 03:04
@SentryMan SentryMan added this to the 3.1 milestone Mar 2, 2025
Copy link
Contributor

@rbygrave rbygrave left a comment

Choose a reason for hiding this comment

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

We haven't got any tests with asserts yet, I think we need to add some that covers the constructor and setter options.

@rbygrave rbygrave changed the title Read getters/setters using property name [bug] @Json.Property name not used to match getters/setters/constructors using property name Mar 2, 2025
@SentryMan SentryMan requested a review from rbygrave March 3, 2025 03:44
@SentryMan SentryMan merged commit d88a1e6 into avaje:main Mar 3, 2025
5 checks passed
@SentryMan SentryMan deleted the naming branch March 13, 2025 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants