public enum ValidationStrategy
Defines a strategy to validate results upfront
Validates all items in a backend response. Validating all entities upfront results in a performance penalty.
Percentage between 0.0 and 1.0. This number specifies the fraction of entities in a backend response that are validated. Validating a higher percentage of entities upfront results in a performance penalty.
case randomSample(percentage: Double)
Allow a custom validation strategy. It must return a
Swift.Errorif the validation fails or
nilif the validation succeed.
case custom(validationBlock: (Array<Dictionary<String, Any>>) throws -> Void)