Sha256: efab1c94ffd63dd4100f25934fd77019b321c0cfbd2f1f270cae64a2882c8e56

Contents?: true

Size: 318 Bytes

Versions: 10

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true
# author: Vadim Shaveiko <@vshaveyko>
class RailsApiDoc::Config::Validator

  cattr_accessor :checkers
  self.checkers = []

  def self.valid_param?(controller_param, api_param_data)
    checkers.all? do |checker|
      checker.valid?(controller_param, api_param_data)
    end
  end

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_api_documentation-0.1.9 lib/rails_api_doc/config/validator.rb
rails_api_documentation-0.1.8 lib/rails_api_doc/config/validator.rb
rails_api_documentation-0.1.7 lib/rails_api_doc/config/validator.rb
rails_api_documentation-0.1.6 lib/rails_api_doc/config/validator.rb
rails_api_documentation-0.1.5 lib/rails_api_doc/config/validator.rb
rails_api_documentation-0.1.4 lib/rails_api_doc/config/validator.rb
rails_api_documentation-0.1.3 lib/rails_api_doc/config/validator.rb
rails_api_documentation-0.1.2 lib/rails_api_doc/config/validator.rb
rails_api_documentation-0.1.1 lib/rails_api_doc/config/validator.rb
rails_api_documentation-0.1.0 lib/rails_api_doc/config/validator.rb