Enum LenientParsing
Passing LenientParsing flags to BoMapper allows you to map such JSONs that are "slightly invalid". Slightly means, e.g. the date string format is wrong.
Namespace: BO4E.meta.LenientConverters
Assembly: BO4Enet.dll
Syntax
public enum LenientParsing : int
Fields
| Name | Description |
|---|---|
| Bo4eUri | allow partly malformed BO4E URIs |
| DateTime | allows automatic conversion of other date formats |
| EnumList | allows list of objects with enum as value where a list of enums was expected (e.g. when mapping from a SAP CDS view) |
| MOST_LENIENT | most lenient (all others) |
| SetInitialDateIfNull | Set initial DateTime if date could not be parsed (only applies if DateTime is set) |
| Strict | strict parsing, no lenient behaviour |
| StringToInt | Try to parse Strings as Integer if type doesn't fit |