Sha256: 61221c809c768abef33a50152b163940fc0f87174a2ba41ca732fa0bec6689d7

Contents?: true

Size: 722 Bytes

Versions: 6

Compression:

Stored size: 722 Bytes

Contents

require_relative 'errors'

module RequestHandler
  module Validation
    class Engine
      def self.valid_schema?(_schema)
        raise NotImplementedError
      end

      def self.validate(_value, _schema, options: {}) # rubocop:disable Lint/UnusedMethodArgument
        raise NotImplementedError
      end

      def self.validate!(_value, _schema, options: {}) # rubocop:disable Lint/UnusedMethodArgument
        raise NotImplementedError
      end

      def self.error_message(_validation_error)
        raise NotImplementedError
      end

      def self.error_pointer(_validation_error)
        raise NotImplementedError
      end

      private

      attr_accessor :value, :schema, :options
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
request_handler-2.3.0 lib/request_handler/validation/engine.rb
request_handler-2.2.0 lib/request_handler/validation/engine.rb
request_handler-2.1.1 lib/request_handler/validation/engine.rb
request_handler-2.1.0 lib/request_handler/validation/engine.rb
request_handler-2.0.0 lib/request_handler/validation/engine.rb
request_handler-1.3.0 lib/request_handler/validation/engine.rb