#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
Release 10.0.0
New features
#592 adds the ability specify additional indentation for lists. By default, the emitter emits:
list:
- item1
- item2
By using this option, the emitter will output:
list:
- item1
- item2
Bug fixes
#598 Fixed AnchorNotFoundException if there is a reference to an anchor of a node which is being deserialized. This happens in cyclic references.
Other changes
Breaking - Binary serialization support has been removed as there was no practical use-case for it.
Refactor Portability.cs into conditionally included files to improve maintainability.
There is now a set of directories under YamlDotNet/Helpers/Portability. Each directory's name contains a list of target platforms, separated by +. Each of those files is included only when building for one of those target platforms. Each directory may also contain a subsirectory named others. The files in this directory are included only when building for one target platform that is not in it's parent name.
... (truncated)
Commits
27c7bc3 Merge branch 'PANDATEEN-master' into master
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
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps YamlDotNet from 9.1.4 to 10.1.0.
Release notes
Sourced from YamlDotNet's releases.
... (truncated)
Commits
27c7bc3
Merge branch 'PANDATEEN-master' into master0b03529
Build: do not tweet about pre-releasesed66b8d
Refactor the comments functionality0a8b53e
Merge branch 'master' of https://github.com/PANDATEEN/YamlDotNet into PANDATE...b5b84c9
Build: Log more information when GitVersion failscb0768c
Send a tweet when a new package is releases188d9dc
Build: add action to test the buildc7eab1a
Build: set a proper release name when drafting a new releasea2d6811
Add job to create a new release5f7cc9e
Merge pull request #598 from 210342/Handle-graph-cycles - Fix cyclic referencesDependabot 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 - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)