Граф коммитов

379 Коммитов

Автор SHA1 Сообщение Дата
Antoine Aubry fcbd1b36a6 Implement more of the deserializer. 2013-05-10 11:05:22 +01:00
Antoine Aubry fc0d6f12e5 Merge branch 'master' into Deserializer
Conflicts:
	YamlDotNet.UnitTests/RepresentationModel/SerializationTests.cs
2013-05-09 10:19:27 +01:00
Antoine Aubry 77f5b0b4a9 Update package version. 2013-05-09 10:11:13 +01:00
Antoine Aubry d621d57e87 The .NET DefaultValue attribute is now respected
Properties with the .NET component model DefaultValue and matching values will no longer be serialized unless EmitDefaults is on (previously only properties with null or zero were ignored).
2013-05-09 10:01:52 +01:00
aaubry 4e1c744e6b Merge branch 'temp_pull_request' 2013-05-05 19:25:54 +01:00
aaubry 78e27ff8dc Ignore .user files. 2013-05-05 19:25:47 +01:00
aaubry 029d95497c Adapt pull request to SOLID principles. 2013-05-05 19:21:41 +01:00
Antoine Aubry 41a77c2cc1 Adapt pull request to SOLID principles. 2013-05-05 17:33:00 +01:00
Antoine Aubry e0ddf98657 Merge pull request #24 from roji/deserialize_null
Null is now properly deserialized
2013-05-05 08:59:03 -07:00
Antoine Aubry c455be2f02 Merge pull request #23 from roji/quotes
Removed needless quotes from TimeSpan representation
2013-05-05 08:58:05 -07:00
Shay Rojansky 9335f00628 Null is now properly deserialized
The deserializer wasn't recognizing null literals as such (~, empty
string, null, Null, NULL). As a result, a null string was deserialized
as an empty string. Added a test for this (roundtrip + emit defaults).
2013-05-05 09:51:57 +01:00
Antoine Aubry cf1788ee02 Merge branch 'pr/n22_Daniel15'
Conflicts:
	YamlDotNet.RepresentationModel/Serialization/FullObjectGraphTraversalStrategy.cs
	YamlDotNet.RepresentationModel/Serialization/RoundtripObjectGraphTraversalStrategy.cs
	YamlDotNet.RepresentationModel/Serialization/Serializer.cs
2013-05-02 12:24:04 +01:00
Shay Rojansky 2e7ce9210a Removed needless quotes from TimeSpan representation 2013-05-02 10:26:01 +01:00
Antoine Aubry a39dbdec26 Merge pull request #20 from roji/ienumerable
Fixed bug with deserialize to IEnumerable
2013-05-02 10:19:46 +01:00
Antoine Aubry 10d2e7c789 Remove unnecessary check for ICollection<T>, since ICollection<T> already implements IEnumerable<T>. 2013-05-02 10:05:52 +01:00
Antoine Aubry 995643d671 Merge pull request #19 from roji/roundtrip_ctor
Can roundrip with type converter and no default ctor
2013-05-02 02:00:22 -07:00
Shay Rojansky 8b70906d98 Fixed bug with deserialize to IEnumerable
Trying to deserialize with YamlSerializer<IEnumerable<X>> bombed,
see unit test DeserializeEnumerable.
2013-04-30 11:46:34 +01:00
Shay Rojansky 58f598236b Can roundrip with type converter and no default ctor
When using the roundtrip traversal strategy, there's a check that the
types involved all have default ctors (otherwise they can't be
deserialized). But this check didn't take into account custom type
converters, which can deserialize without default ctors.
2013-04-30 10:49:22 +01:00
Antoine Aubry 0d9b5a45bd Fix failing unit test. 2013-04-30 10:12:20 +01:00
Antoine Aubry 4d55f12699 Merge pull request #17 from Daniel15/property-aliases
Property aliasing
2013-04-30 02:10:00 -07:00
Antoine Aubry fa5ff33c8d Merge branch 'master' of github.com:aaubry/YamlDotNet 2013-04-30 10:02:02 +01:00
Antoine Aubry a8e7770d0d Merge pull request #18 from roji/nullable
Nullables and TimeSpan
2013-04-30 02:01:31 -07:00
Antoine Aubry eb8b0d74ea Fix bug when emitting null scalars. 2013-04-30 09:59:50 +01:00
Shay Rojansky 1cbefc15cb Support for the TimeSpan type 2013-04-29 17:45:40 +01:00
Shay Rojansky 9b0d1a2d3d Fixed support for nullables
Nullables were being serialized as objects (i.e. with HasValue and
Value properties), and therefore could not be deserialized.
2013-04-29 17:03:07 +01:00
Daniel Lo Nigro c6a340b880 Use YamlAliasAttribute value when serializing. 2013-04-29 20:42:06 +10:00
Antoine Aubry d4bdddb15a Start implementing the Deserializer. 2013-04-29 10:53:44 +01:00
Daniel Lo Nigro 4385fa5e2d Add unit tests for convention-based property naming 2013-04-29 18:16:01 +10:00
Daniel Lo Nigro c88a33872b Ability to use standard .NET property naming conventions when deserializing (eg. part_no -> PartNo), and property aliases 2013-04-29 17:58:42 +10:00
Antoine Aubry f66cfa5053 Fix anchor not found exception when deserializing recursive lists. 2013-03-11 12:57:34 +00:00
Antoine Aubry 83f560d24c Update package version.
Fix logo url.
2013-03-11 12:41:47 +00:00
Antoine Aubry 712bc5537b Allow to customize the creation of object during deserialization. 2013-03-11 12:28:31 +00:00
Antoine Aubry 8d130890fd Merge branch 'master' of github.com:aaubry/YamlDotNet 2012-12-20 12:01:01 +00:00
Antoine Aubry 20b0e80962 Fix infinite loop bug in legacy YamlSerializer.Serialize() method. 2012-12-20 11:59:01 +00:00
Antoine Aubry eb6f507676 Merge pull request #10 from johshoff/master
Remove stray byte order marks
2012-12-14 10:32:34 -08:00
Johannes Hoff 0a3bfbce71 Remove uncompilable, and unuseful, line. 2012-12-13 15:11:39 -08:00
Johannes Hoff 1454fe78c4 Remove stray byte order marks. 2012-12-13 15:00:15 -08:00
Antoine Aubry 3295839585 Add Serialize() method to YamlSerializer for backwards compatibility. 2012-12-10 16:28:12 +00:00
Antoine Aubry 9462850807 Fix bug #7: Duplicate reference anchor error
Fix assignment of anchor to basic types when declared type is object.
2012-12-03 14:56:41 +00:00
Antoine Aubry 696edcd850 Merge pull request #4 from roji/fix_roundtrip7
Fixed chomp indicator emitting logic
2012-10-17 13:47:09 -07:00
Antoine Aubry 77f3e22ccd Merge pull request #3 from roji/ignoreattr
Added YamlIgnore attribute that makes the serializer skip properties
2012-10-17 13:18:19 -07:00
Shay Rojansky 9da27d8819 Fixed chomp indicator emitting logic
Unit test RoundtripExample17 was failing because the correct chomp indicator wasn't being emitted
2012-10-17 01:53:36 +02:00
Shay Rojansky 9050dad8ba Added YamlIgnore attribute that makes the serializer skip properties 2012-10-15 13:29:10 +02:00
Antoine Aubry 703d47f5e3 Merge pull request #2 from roji/master
Added support for deserializing to array
2012-10-14 08:54:11 -07:00
Shay Rojansky 18f56221f1 Added support for deserializing to array
Previously sequence deserialization would work for collections only
2012-10-14 12:09:10 +02:00
Antoine Aubry 9ff9e49bfb Fix the build. 2012-10-12 10:28:38 +01:00
Antoine Aubry 88ba5077eb Add description to readme.md 2012-10-12 10:20:26 +01:00
aaubry 2004611903 Merge D:/antoine/yamldotnet-tmp/trunk 2012-10-11 23:52:23 +01:00
Antoine Aubry 836aabebb2 Initial commit 2012-10-11 14:43:58 -07:00
Antoine Aubry 81e30e8d0f Refactored the serialization implementation to Serializer. 2012-05-30 23:01:39 +00:00