[CSHARP-808] GeoJson serializers should coerce numeric values to double during deserialization Created: 27/Aug/13 Updated: 25/Aug/15 Resolved: 28/Aug/13 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.8.2 |
| Fix Version/s: | 1.8.3 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
The serializers for GeoJson objects are too strict when deserializing and require that numeric values be doubles. They should allow other numeric formats (Int32 and Int64) and convert to double. For example, given the following class.
the following works:
but the following does not:
|
| Comments |
| Comment by Githook User [ 25/Aug/15 ] |
|
Author: {u'name': u'rstam', u'email': u'robert@10gen.com'}Message: |
| Comment by auto [ 25/Sep/13 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@10gen.com'}Message: |
| Comment by auto [ 28/Aug/13 ] |
|
Author: {u'username': u'rstam', u'name': u'rstam', u'email': u'robert@10gen.com'}Message: |
| Comment by Robert Stam [ 28/Aug/13 ] |
|
In code review. |