Enums

The following enums are available globally.

  • Represents all possible errors when decoding or encoding JSON.

    • unsupportedType: When the data being decoded has a type that is not supported by the driver.
    • invalidObjectKeyType: When a JSON object has a non-string key.
    • invalidLiteral: When the driver can’t convert a literal type to a valid JSON type.
    • invalidDate: When the driver can’t convert a date to or from JSON.
    • invalidBase64: When the driver cannot parse a base64 string.
    • invalidReference: When the driver try to parse an invalid @ref type.
    See more

    Declaration

    Swift

    public enum JsonError: Error
  • Represents the normalization operation to be used for Casefold function.

    See more

    Declaration

    Swift

    public enum Normalizer: String
  • Represents a time unit to be used for Epoch function

    See more

    Declaration

    Swift

    public enum TimeUnit: String