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

[ODS-6058] Enforcement of uniqueness in extension collections #860

Merged
merged 3 commits into from
Oct 25, 2023

Conversation

gmcelhanon
Copy link
Contributor

No description provided.

@gmcelhanon gmcelhanon marked this pull request as ready for review October 20, 2023 06:36
…ension collections.

Finalize support for "No Duplicate Members" validation as a resource validation.

* Moved extension validation up to resource Extensions member (to allow for application of NoDuplicateMembers attribute to the generated Extension resources classes).
* Revert previous change to ValidateAggregateExtensionsAttribute adding NoDuplicateMembers attribute and validation (this is too late in the process for extension updates to detect duplicates)
* Convert other validation attributes to convert CompositeValidationResult to a standard ValidationResult when complete (allowing for validation results to be reported into model state for resource-level validations as well as existing entity-level validation logic).
* Expand test coverage for all duplicate member scenarios (Create/Update x Standard/Extension collections)
Fixed unit test.
@simpat-adam simpat-adam merged commit 35106f4 into main Oct 25, 2023
15 checks passed
@simpat-adam simpat-adam deleted the ODS-6058 branch October 25, 2023 01:59
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