Haacked
543d1bb863
Add support for deserializing non-public members
...
But only ones with ParameterAttribute applied.
2015-01-02 01:14:16 -08:00
Haacked
83bc99256a
Add attribute to serialize strings as base64 encoded
2015-01-02 01:14:12 -08:00
Matt G. Ellis
d0dcbe8fb6
Allow [Parameter] to control JSON Field Names.
...
Previously, SimpleJsonSerializer.MapClrMemberNameToJsonFieldName
special cased the name "Links" since while that was the name of the
property in the object model, in JSON "_links" was used instead.
It turns out that there was an additional problem, where GitReference
wants to expose as Repository, but the name in JSON responses is
"repo". Instead of simply adding another special case to
MapClrMemberNameToJsonFieldName, we update the implementation of the
serializer to allow [Parameter(Key = "some_name")] to denote what name
we'd like to use for the field in the JSON object when we serialize.
2014-11-17 23:55:37 -08:00
Brendan Forster
bb78757687
make the Hireable field a nullable bool, because API
2014-07-07 19:41:07 +09:30
Brendan Forster
5d3d4e7c35
added failing test
2014-07-07 19:39:18 +09:30
Haacked
aaa010d790
Special case JSON _links property.
...
For some reason, the List Feeds http://developer.github.com/v3/activity/feeds/#list-feeds
API response has a field that starts with an underscore. This also occurs in
the Review Comments API: http://developer.github.com/v3/pulls/comments/#list-comments-in-a-repository
and in the Contents API. http://developer.github.com/v3/repos/contents/#get-the-readme
This commit special cases that one field so we can use the expected CLR
property name. I couldn't find a case where a
JSON response doesn't prefix "links" with an underscore.
Related to #386
2014-02-20 09:34:45 -08:00
John Nye
d433eec548
Allow deserializing of base properties in SIMPE_JSON_TYPEINFO mode (works otherwise)
2013-11-07 21:28:06 -08:00
John Nye
93f18d5cab
Move NewTag serialization test to TagClientTest
2013-11-04 18:42:59 +00:00
John Nye
b5056a1346
Fix fate time utc expected result
2013-11-04 18:35:30 +00:00
John Nye
19b1b72365
Fix long json string
2013-11-04 18:33:48 +00:00
John Nye
951b03dbbc
Fix DateTimeKind to UTC
2013-11-04 18:20:23 +00:00
John Nye
6bc2991abc
Ensure NewTag serializes correctly
2013-11-02 08:23:03 +00:00
half-ogre
6f3fa81789
move internal stuff to .Internal namespace
2013-10-08 15:14:06 -07:00
half-ogre
77bf8f23e7
unit tests for serializer changes
2013-10-08 09:53:07 -07:00
Haacked
91b5449ddd
Removed fluent assertions
2013-09-23 17:41:04 -07:00
Haacked
997e955f38
Rename to Octokit to be consistent with other API libs
...
GitHub is naming all of the libraries Octokit for their respective
platforms
2013-01-29 14:00:27 -08:00