Skip to content

Conversation

linuxdaemon
Copy link
Contributor

This is consistent with the validation check
that allows no tests if status=experimental

This is consistent with the validation check
that allows no tests if status=experimental
Updated validator for "tests" so that it always runs, even if no tests are provided.  without adding always=True, it fails to catch missing tests.
Also, ensure that we run against the .value of the enumeration, 
not the enum object itself. This is required since The Pydantic config use_enum_values = True
@pyth0n1c pyth0n1c changed the base branch from main to customer_prs_1 November 28, 2023 01:27
Copy link
Contributor

@pyth0n1c pyth0n1c left a comment

Choose a reason for hiding this comment

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

Had to make some minor changes to use the value of the enum and ALWAYS run validator for tests, not just when the field is present (which is the default behavior).

@pyth0n1c pyth0n1c merged commit 9efa110 into splunk:customer_prs_1 Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants