Notes on serialization
- Enums in
HypermediaObjectsand Action parameters can be attributed usingEnumMemberto specify fixed string names for enum values. If no attribute is present the value will be serialized usingToString() DateTimeandDateTimeOffsetwill be serialized using ISO 8601 notation: e.g.2000-11-22T18:05:32.9990000+02:00- When properties contain classes the follwoing attributes are not applied:
FormatterIgnoreHypermediaPropertyAttributeHypermediaActionAttributeHypermediaObjectAttributeHypermediaPropertyAttribute
QueryStringBuilder
Building URIs which contain a query string uses the QueryStringBuilder to serialize C# Objects (tricky). If the provided implementation does not work for you it is possible to pass an alternative to the init function.
Tested for:
- Classes, with nesting
- Primitives
- IEnumerable (List, Array, Dictionary)
- DateTime, TimeSpan, DateTimeOffset
- String
- Nullable