Class: FlowEngine::Validation::Adapter
- Inherits:
-
Object
- Object
- FlowEngine::Validation::Adapter
- Defined in:
- lib/flowengine/validation/adapter.rb
Overview
Abstract adapter for step-level validation. Implement #validate to plug in dry-validation, JSON Schema, or other validators; the engine does not depend on a specific one.
Direct Known Subclasses
Instance Method Summary collapse
-
#validate(_node, _input) ⇒ Result
Validates the user's input for the given step.
Instance Method Details
#validate(_node, _input) ⇒ Result
Validates the user's input for the given step.
33 34 35 |
# File 'lib/flowengine/validation/adapter.rb', line 33 def validate(_node, _input) raise NotImplementedError, "#{self.class}#validate must be implemented" end |