Module: Hyrax::Workflow::WorkflowImporter::SchemaValidator
- Defined in:
- app/services/hyrax/workflow/workflow_importer.rb
Class Method Summary collapse
-
.call(data:, schema:, logger:) ⇒ Object
True if the data validates from the schema.
Class Method Details
.call(data:, schema:, logger:) ⇒ Object
Returns true if the data validates from the schema.
170 171 172 173 174 175 176 |
# File 'app/services/hyrax/workflow/workflow_importer.rb', line 170 def self.call(data:, schema:, logger:) result = schema.call(data) return true if result.success? = result.(full: true).inspect logger.error() raise end |