lib/micro/case/with_validation.rb in u-case-1.0.0 vs lib/micro/case/with_validation.rb in u-case-1.1.0

- old
+ new

@@ -6,10 +6,10 @@ module Case class Base include Micro::Attributes::Features::ActiveModelValidations def call - return Failure(:validation_error) { self.errors } unless valid? + return Failure(:validation_error) { {errors: self.errors} } unless valid? __call end end end