ValidationErrorReason
public enum ValidationErrorReason
The possible underlying reasons for validation errors.
-
The depth limit for dictionary-like data has been exceeded.
Declaration
Swift
case depthLimitExceeded(message: String) -
The object is not a dictionary where a dictionary is expected.
Declaration
Swift
case notADictionary(message: String) -
The object is or contain(s) types that aren’t JSON compatible. JSON compatible types:
String,Array,Dictionary,Boolean,null, plus all native floating point & integer numbers.Declaration
Swift
case notJSONCompatible(message: String) -
The data does not represent a valid JSON string.
Declaration
Swift
case invalidJSON(message: String) -
The data does not represent valid CBOR data.
Declaration
Swift
case invalidCBOR(message: String) -
The size limit for some piece of data has been exceeded.
Declaration
Swift
case sizeLimitExceeded(message: String) -
Invalid ditto config.
This error is thrown when the provided
DittoConfigdoes not meet the required validation criteria. For detailed information on the validation requirements for each property, consult the documentation of the individual properties ofDittoConfig.Declaration
Swift
case invalidDittoConfig(message: String)