Skip to content

(fix) Add Correct targeting on attributes that work with property promotion #82

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cooperaj
Copy link

@cooperaj cooperaj commented Jun 6, 2025

Fixes #81.

I attempted to add some tests that would ensure that attributes used against promoted properties implement both targets but there doesn't actually appear to be a way to do that programatically. The test appears to be "make a new instance and trap the error".

cooperaj added a commit to ministryofjustice/opg-use-an-lpa that referenced this pull request Jun 16, 2025
cooperaj added a commit to ministryofjustice/opg-use-an-lpa that referenced this pull request Jun 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Some, but not all, PropertyCaster Attributes target the property as well as the parameter.
1 participant