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

Add new test that validate how object level validation interact with property level validation #455

Merged

Conversation

Daniel-Svensson
Copy link
Member

@Daniel-Svensson Daniel-Svensson commented Nov 1, 2023

There is a change that #453 changed behaviour for properties which are only validated using object level validation (either IValidatableObject or Validation attributes on the type) but does not have any property level validation attributes.

Previously such object level validation errors where cleared when if the property was modified.

Copy link

sonarcloud bot commented Nov 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@Daniel-Svensson
Copy link
Member Author

@SandstromErik/ @erikoijwall please merge if you think this is a good solution and the test seems OK.

I have validated that the test passed against 5.4.0, but failed in main without the fix here.

Normally object validation is triggered when submitting changes as well

Copy link
Contributor

@SandstromErik SandstromErik left a comment

Choose a reason for hiding this comment

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

Looks good to me

@SandstromErik SandstromErik merged commit 4f5ae2e into OpenRIAServices:main Nov 3, 2023
7 checks passed
@Daniel-Svensson Daniel-Svensson added this to the 5.4.1 milestone Nov 13, 2023
@Daniel-Svensson Daniel-Svensson deleted the validation_tests branch November 21, 2023 20:55
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