Class: Hyrax::Workflow::WorkflowSchema

Inherits:
Dry::Validation::Contract
  • Object
show all
Defined in:
app/services/hyrax/workflow/workflow_schema.rb

Overview

For dry-validation >= 1

Defined Under Namespace

Classes: ResultWrapper, Types

Class Method Summary collapse

Class Method Details

.call(data) ⇒ Object

Provide a class method for backwards-compatibility. This will be removed in Hyrax 3.0.



92
93
94
# File 'app/services/hyrax/workflow/workflow_schema.rb', line 92

def self.call(data)
  ResultWrapper.new(new.call(data))
end