Repository navigation
chore(deps): update rust crate serde-saphyr to v2.1.0 - #1726
Open
renovate[bot] wants to merge 1 commit into
Open
renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.0.0→2.1.0Release Notes
bourumir-wyngs/serde-saphyr (serde-saphyr)
v2.1.0Compare Source
Added
PropertySyntax::DockerComposeWithNulls: Compose interpolation where a value that issolely a reference to an unset property, or whose expansion is
null/~, becomes YAML null.Explicitly empty properties and empty defaults stay empty strings, and
DockerComposeitselfis unchanged.
Options::reject_tagged_field_namesto catch misplaced tags onstruct field names, with
Error::TaggedStructFieldNamediagnostics. Struct field names canonly be strings,
!!stris still accepted. As other tags can only be ignored, tag on a structurefield name is almost for sure placed wrongly. This setting will be default in next major release.
Options::leading_zero_numbers_as_stringsandOptions::underscored_numbers_as_stringsto preserve numeric spellings such as0755and1_000as strings in untyped values, including untagged enums andflattened fields (#225).
Both default to
false; direct typed parsing, explicit numeric tags, andmapping-key comparison keep their existing behavior.
Error::render_toto append diagnostics to anystd::fmt::WriteusingRenderOptions, without collecting the complete output in an intermediate string(#221).
DuplicateKeyPolicy::PassThroughto delegate repeated explicit mapping entriesto Serde visitors, matching
serde_yaml's handling for structs, standard maps, and custommultimap visitors (#226).
The default remains
Error; merge expansion retains its precedence rules. See the READMEmigration note for the scope of this option.
Deprecated
SerializerOptions::empty_as_braces. Setting it tofalseemits YAML nullfor empty block collections without tags or anchors. These values do not round-trip into
collection types. Omit the setting to keep the default
trueand emit[]or{}.Existing serialization behavior remains supported for compatibility.
Fixed
the
gardeandvalidatorintegrations. A document such as!Maybe nullnow reachesenum dispatch instead of being skipped. This also affects default options: an
Option<String>target receives aNoneitem for!Foo null, while aStringtargetreports
NullIntoString. Untagged null documents and explicit!!nullare still skipped.no_schema:!Number 42can deserialize into a numeric payload, while a string payload stillrequires quoting, as in
!Text "42". This applies independently of property interpolation.and interpolation work budgets. Reader iterators stop after an interpolation-budget
breach, including breaches reported through an alias.
avoiding trailing whitespace while preserving whitespace in the string content
(#249).
std::io::Errorfrom deserialization failures throughstd::error::Error::source(). The outer message isIO error, so error chainsinclude the underlying cause only once. Standalone Miette, Figment, and Figment2
diagnostics retain the cause in their messages. Custom Miette formatters retain
control over the complete message through
MessageFormatter::format_standalone_message.Error::WithSnippetwhen followingstd::error::Error::source()by forwarding the wrapped error's source.Use
without_snippet()to inspect the wrapped error. Alias errors retain theircomplete source chain, including snippet wrappers, for compatibility.
and enum targets, including externally tagged enum mapping keys (#235).
Incompatible tags and tagged null-like payloads no longer bypass validation.
flattened values. The local
!timeduration tag is distinct from standard YAML!!timestamp; robotics tags require the feature andangle_conversions: true.of silently constructing empty values (#233).
Blank values and the plain spellings
~,null,Null, andNULLare handled consistently.Write
[]for an empty sequence or{}for an empty mapping.Option<T>null handlingand defaults for absent fields are unchanged; see the README migration notes.
Configuration
📅 Schedule: (in timezone Europe/Berlin)
* 0-3 * * 1)🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.