Skip to content

Conversation

@memark
Copy link
Contributor

@memark memark commented May 26, 2024

Description of changes

Support permissive-mode validation in the CLI by replacing the --partial-validate option with --validation-mode, taking the values strict, permissive or partial. The latter two are kept behind their respective feature flags.

Issue #, if available

Resolves #156

Checklist for requesting a review

  • This change only affects the CLI, where one experimental option was replaced with another.
    Please tell me how and where you'd like me to document that.

I confirm that cedar-spec (choose one, and delete the other options):

  • Does not require updates because my change does not impact the Cedar formal model or DRT infrastructure.

Signed-off-by: Magnus Markling <[email protected]>
@memark memark changed the title Support permissive-mode validation in the CLI Replace partial-validate with permissive-mode in the CLI May 26, 2024
memark added 2 commits May 26, 2024 15:55
Signed-off-by: Magnus Markling <[email protected]>
Signed-off-by: Magnus Markling <[email protected]>
@memark memark force-pushed the permissive-validation branch from 1035063 to aadc14b Compare May 26, 2024 13:56
@memark memark changed the title Replace partial-validate with permissive-mode in the CLI Replace partial-validate with validation-mode in the CLI May 26, 2024
Copy link
Contributor

@cdisselkoen cdisselkoen left a comment

Choose a reason for hiding this comment

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

Looks great! It would also be great to add a line to the changelog in the cedar-policy-cli directory describing this change.

Signed-off-by: Magnus Markling <[email protected]>
@memark memark force-pushed the permissive-validation branch from 00d2ee3 to 1f45e65 Compare May 28, 2024 12:58
Copy link
Contributor

@john-h-kastner-aws john-h-kastner-aws 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!

@cdisselkoen cdisselkoen merged commit 354c531 into cedar-policy:main May 28, 2024
@memark memark deleted the permissive-validation branch May 28, 2024 14:28
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.

Support permissive-mode validation in the CLI

3 participants