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

Make strict mode less strict #500

Merged
merged 2 commits into from
Apr 24, 2024
Merged

Make strict mode less strict #500

merged 2 commits into from
Apr 24, 2024

Conversation

mitsuhiko
Copy link
Owner

@mitsuhiko mitsuhiko commented Apr 23, 2024

Fixes #498

@mitsuhiko mitsuhiko merged commit 7b3549f into main Apr 24, 2024
30 checks passed
@mitsuhiko mitsuhiko deleted the less-strict branch April 24, 2024 06:36
@@ -56,6 +56,8 @@ For upgrade instructions read the [UPDATING](UPDATING.md) guide.
was raised to 100000. #493
- `Value::from` is now implemented for `Error` as public API to create invalid values.
Previously this behavior was hidden internally in the serde support. #495
- `UndefinedBehavior::Strict` now acts more delayed. This means that now `value.key is defined`
will no longer error when `value.key` is `undefined`. #500
Copy link

Choose a reason for hiding this comment

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

Isn't that a little wrong.

- `value.key` is `undefined`
+ `value` does not have a member `key`.

or similarly.

Copy link
Owner Author

Choose a reason for hiding this comment

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

I fixed the sentence in the changelog:

UndefinedBehavior::Strict now acts more delayed. This means that now value.key is defined will no longer fail.

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.

UndefinedBehavior::Strict and undefined key in mapping
2 participants