Skip to content

Conversation

cdisselkoen
Copy link
Contributor

Description of changes

As it says in the title.

Issue #, if available

Fixes #530

Checklist for requesting a review

The change in this PR is (choose one, and delete the other options):

  • A change "invisible" to users (e.g., documentation, changes to "internal" crates like cedar-policy-core, cedar-validator, etc.)

Not breaking because the error type being changed is not re-exported in cedar-policy.

I confirm that this PR (choose one, and delete the other options):

  • Does not update the CHANGELOG because my change does not significantly impact released code.

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.

),
/// JSON null, which is never valid, but we put this here in order to
/// provide a better error message.
Null,
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this just implicitly deserailize from null without additional annotation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does seem so, as shown by this PR's tests

@cdisselkoen cdisselkoen merged commit 1304b2e into main Mar 28, 2024
@cdisselkoen cdisselkoen deleted the cdisselkoen/entity-json-null branch March 28, 2024 19:42
cdisselkoen added a commit that referenced this pull request Mar 28, 2024
Signed-off-by: Craig Disselkoen <[email protected]>
shaobo-he-aws pushed a commit that referenced this pull request Mar 29, 2024
Signed-off-by: Craig Disselkoen <[email protected]>
shaobo-he-aws pushed a commit that referenced this pull request Apr 11, 2024
shaobo-he-aws pushed a commit that referenced this pull request Apr 11, 2024
Signed-off-by: Craig Disselkoen <[email protected]>
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.

Improve error when null occurs in entity json data
3 participants