#604 Support for deserialization of interface types (Fixes #601)
This allows to register a concrete class for a given interface. When deserializing a value of that interface type, the concrete class will be deserialized instead.
var sut = new DeserializerBuilder()
.WithNamingConvention(CamelCaseNamingConvention.Instance)
.WithTypeMapping<ICar, Car>()
.WithTypeMapping<IModelSpec, ModelSpec>()
.Build();
#603 Fix nullable annotation of TagName implicit converter.
#602 Fix nullable annotations for AnchorName implicit converter.
Release 11.0.1
Bugfixes
#596 Merge sequence of anchors in reverse order (fixes #594)
When merging sequences, the order was incorrect. This is a breaking change. If you relied on the previous behaviour, you will need to adapt your code.
#563 Fix imutable pattern in EmitterSettings.SkipAnchorName.
Release 10.1.0
#584 Add support for adding comments to properties.
The YamlMember attribute now has a Description property. When set, a comment is emitted when serializing that property:
class Person
{
public string Name { get; set; }
[YamlMember(Description = "This is the age")]
public int Age { get; set; }
[YamlMember(Description = "male or female")]
public string Sex { get; set; }
}
Name: PandaTea
# This is the age
Age: 100
# male or female
Sex: male
... (truncated)
Commits
7ffbb84 Merge pull request #602 from meziantou/patch-1
1961d66 Merge pull request #603 from meziantou/patch-2
b722b07#604 Support for deserialization of interface types
3219bbb Removed abstract method AddTypeMapping from BuilderSkeleton as this only appl...
abe677b Added another option to deserialize interface types by specifying their concr...
4a86822 Fix nullable annotation of TagName implicit converter
68c916b Fix nullable annotations for AnchorName implicit converter
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
Bumps YamlDotNet from 9.1.4 to 11.1.0.
Release notes
Sourced from YamlDotNet's releases.
... (truncated)
Commits
7ffbb84
Merge pull request #602 from meziantou/patch-11961d66
Merge pull request #603 from meziantou/patch-2b722b07
#604 Support for deserialization of interface types3219bbb
Removed abstract method AddTypeMapping from BuilderSkeleton as this only appl...abe677b
Added another option to deserialize interface types by specifying their concr...4a86822
Fix nullable annotation of TagName implicit converter68c916b
Fix nullable annotations for AnchorName implicit converter35db04b
Build: add missing env variabled8c5997
#563 Fix imutable pattern in EmitterSettings.SkipAnchorName6911240
Build: add comments to related issues and pull requests when releasingDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually