Class: Karafka::Web::Pro::Ui::Lib::Search::Contracts::Form

Inherits:
Contracts::Base
  • Object
show all
Defined in:
lib/karafka/web/pro/ui/lib/search/contracts/form.rb

Overview

Note:

This does not validate the raw input from the HTML but one that was slightly normalized to simplify the flow.

Validates the search input This is not a complex validator with error handling, etc Since we use HTML5 validations that are good enough, here we check all the consistency of the data but without providing sophisticated user error reporting as it is the final checking that should not happen often.

Method Summary

Methods inherited from Contracts::Base

configure, #validate!