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 small workflow schema improvements #1853

Merged
merged 2 commits into from
Oct 24, 2023
Merged

Conversation

sevein
Copy link
Member

@sevein sevein commented Sep 28, 2023

I'm submitting a couple of fixes to the workflow schema:

  1. Exclude null values
  2. Fix validation of "chain_choices" and "replacements" objects

@sevein sevein force-pushed the dev/workflow-remove-nulls branch 3 times, most recently from a11eb4f to 8d57251 Compare September 28, 2023 10:30
@replaceafill replaceafill added AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests and removed AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests labels Sep 28, 2023
@sevein sevein force-pushed the dev/workflow-remove-nulls branch 2 times, most recently from 86066ee to 6110d79 Compare September 28, 2023 18:01
@sevein sevein added the AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests label Sep 28, 2023
Only the first item in the `chain_choices` and `replacements` arrays was being
validated due to our usage of an array of schemas, leading to tuple validation.
In this context, each position in the array was expected to validate against
the schema at the corresponding position in the `items` array, leaving
subsequent items unvalidated.

This commit addresses this by converting `items` into a single schema object,
ensuring that validation applies to all items within the array, not just the
first.
This commit updates the workflow schema to no longer accept null values.
Previously required fields that permitted nulls have been modified to become
non-required.

Excluding null as an acceptable value is a backward-incompatible change.
However, as we have not committed to maintain backward compatibility,
implementing this change is acceptable.
@sevein sevein force-pushed the dev/workflow-remove-nulls branch from 6110d79 to a1ce480 Compare October 19, 2023 18:51
@replaceafill replaceafill added AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests and removed AMAUAT Issues relating to the improvement of the AM Automated Acceptance tests labels Oct 19, 2023
@sevein sevein requested a review from a team October 23, 2023 10:12
Copy link
Member

@replaceafill replaceafill left a comment

Choose a reason for hiding this comment

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

Thanks!

@replaceafill replaceafill merged commit 52cd8ca into qa/1.x Oct 24, 2023
37 checks passed
@replaceafill replaceafill deleted the dev/workflow-remove-nulls branch October 24, 2023 13:50
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