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

DatasetValidator allow empty fields for conditionally required fields. #273

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

g-saracca
Copy link
Contributor

@g-saracca g-saracca commented Mar 4, 2025

What this PR does / why we need it:

Modifies the Create/Update Dataset Validator to allow empty values in child fields that are required but their parent fields (compound fields) are not.
These child fields should only be truly required when one of their siblings fields has a value; otherwise, they can be left empty.

⚠️ Related Dataverse PR should be merged first.

Which issue(s) this PR closes:

Related Dataverse PRs:

Suggestions on how to test this:

review code and unit tests

@github-actions github-actions bot added bug Something isn't working FY25 Sprint 18 FY25 Sprint 18 (2025-02-26 - 2025-03-12) GREI Re-arch GREI re-architecture-related SPA.Q1 Not related to any specific Q1 feature SPA.Q1.6 Files Page: Files Edit Options labels Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working FY25 Sprint 18 FY25 Sprint 18 (2025-02-26 - 2025-03-12) GREI Re-arch GREI re-architecture-related SPA.Q1 Not related to any specific Q1 feature SPA.Q1.6 Files Page: Files Edit Options Waiting
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DatasetValidator allow empty fields for conditionally required fields.
1 participant