Bot releases are hidden (Show)
Published by aaubry over 6 years ago
/!\ This release fixes a security issue. It is strongly recommended to upgrade,
mainly if you are parsing documents from sources that you do not trust.
Many thanks to Kurt Boberg, from the DocuSign Application Security Team, who identified this issue and provided feedback on mitigation strategies.
Remove the legacy backwards-compatibe syntax that enabled to create
Serializer
and Deserializer
directly then changing their configutation.
In most cases, the calls to the constructors should be replaced by
instantiations of SerializerBuilder
and DeserializerBuilder
.
These can be configured at will, then used to create instances of
(De)serializer.
It is still possible to use the default constructors, if no configuration is needed.
Drop support for specifying arbitrary type names in tags.
Support for automatically resolving a fully qualified type name
from a tag has been discontinued. That feature was poorly designed
and not standard.
During deserialization, each tag mapping must be explicitly registered.
During serialization, when using the EnsureRoundtrip
method, it is necessary to
register tag mappings for each type that will require a tag, that is, any type that
is used as the value of a property with a different declared type.
Fix bug where deserialized values were not being converted to the destination type.
var sut = new DeserializerBuilder()
.WithTagMapping("!dbl", typeof(DoublyConverted))
.Build();
// The scalar "hello" will first be converted to DoublyConverted
// then that value will be converted to int.
var result = sut.Deserialize<int>("!dbl hello");
Assert.Equal(5, result);
Published by aaubry over 6 years ago
Published by aaubry over 6 years ago
Published by aaubry almost 7 years ago
Published by aaubry about 7 years ago
Actualy cache in CachedTypeInspector.
Published by aaubry over 7 years ago
Published by aaubry over 7 years ago
netstandard1.3
).Published by aaubry over 7 years ago
32bits Unicode code points in escape sequences and url-encoded tags are now properly handled.
Anchors can now be redefined in a document.
This is to conform to the 1.1 spec as well as the 1.2 spec:
3.2.2.2. Anchors and Aliases
When composing a representation graph from serialized events, an alias node refers to the most recent node in the serialization having the specified anchor. Therefore, anchors need not be unique within a serialization.
Added support for tag mappings on the serializer.
Use SerializerBuilder.WithTagMapping()
to register a new tag mapping on the serializer.
Allow to unregister components from the SerializerBuilder and DeserializerBuilder.
Use the Without...
methods on SerializerBuilder
and DeserializerBuilder
for that.
DateTimeKind.Utc
and Standard Date and Time Format Strings of "G" as its default parameters, if they are omitted.FormatException
. Please refer to my whole test cases.Improve the (de)serializer builders so that it is possible to wrap existing component registrations.
Added the ApplyNamingConventions
property to YamlMemberAttribute
.
When this property is true, naming conventions are not applied to the associated member. This solves issue 228.
Published by aaubry about 8 years ago
This a major release that introduces a few breaking changes.
Serializer
and Deserializer
are now obsoleteSerializerBuilder
and DeserializerBuilder
IYamlSerializable
interface with IYamlConvertible
IYamlSerializable
is now obsolete, but will be kept until the next major release.EventReader
EventReader
was a wrapper over IParser
that offered some abstractions for parsing,IParser
.YamlAliasAttribute
SerializerBuilder
and DeserializerBuilder
Serializer
and Deserializer
through a fluent syntax.IYamlConvertible
interfaceYamlDocument
YamlMappingNode
, YamlSequenceNode
and YamlScalarNode
now implement IYamlConvertible
,true
, y
, yes
, on
false
, n
, no
, off
.New features:
Bug fixes:
Published by aaubry over 8 years ago
New features:
Fixes and improvements:
Published by aaubry about 9 years ago
This is a minor update that simply adds an overload of YamlStream.Load to be able to specify the EventReader.
Published by aaubry over 9 years ago
Bug fixes:
Published by aaubry over 9 years ago
New features:
YamlStream.Save()
.YamlMember
attribute.Bug fixes:
Published by aaubry almost 10 years ago
Published by aaubry almost 10 years ago
Published by aaubry almost 10 years ago
This release adds a signed package and portable versions of the library.
Published by aaubry about 10 years ago
Added suport for .NET binary serialization.
Published by aaubry about 10 years ago
Fix DuplicateAnchorException when using merge keys do merge mappings that contain aliases.
Implement merging a sequence of aliases.
Published by aaubry over 10 years ago
Fix AnchorNotFoundException when another exception occurs during deserialization.