Class: Inquirex::Validation::Adapter
- Inherits:
-
Object
- Object
- Inquirex::Validation::Adapter
- Defined in:
- lib/inquirex/validation/adapter.rb
Overview
Abstract adapter for step-level validation. Implement #validate to plug in dry-validation, ActiveModel::Validations, JSON Schema, or any other validator.
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#validate(_node, _input) ⇒ Result
31 32 33 |
# File 'lib/inquirex/validation/adapter.rb', line 31 def validate(_node, _input) raise NotImplementedError, "#{self.class}#validate must be implemented" end |