Module: CurationConcerns::Workflow::WorkflowImporter::SchemaValidator
- Defined in:
- app/services/curation_concerns/workflow/workflow_importer.rb
Class Method Summary collapse
-
.call(data:, schema:) ⇒ Object
True if the data validates from the schema.
Class Method Details
.call(data:, schema:) ⇒ Object
Returns true if the data validates from the schema.
95 96 97 98 99 |
# File 'app/services/curation_concerns/workflow/workflow_importer.rb', line 95 def self.call(data:, schema:) validation = schema.call(data) return true unless validation..present? raise validation..inspect end |