Sha256: 3805c7d668263946e33b1c90c7810de63b010b2ebde399712f5ade789a50cef4
Contents?: true
Size: 1.05 KB
Versions: 13
Compression:
Stored size: 1.05 KB
Contents
require_relative 'api_regulator/api' require_relative 'api_regulator/configuration' require_relative 'api_regulator/controller_mixin' require_relative 'api_regulator/dsl' require_relative 'api_regulator/formats' require_relative 'api_regulator/open_api_generator' require_relative 'api_regulator/param' require_relative 'api_regulator/security' require_relative 'api_regulator/shared_schema' require_relative 'api_regulator/validation_error' require_relative 'api_regulator/validator' require_relative 'api_regulator/version' require_relative 'api_regulator/webhook' # Load tasks if Rails is present if defined?(Rake) load 'tasks/api_regulator_tasks.rake' end module ApiRegulator class Error < StandardError; end class << self attr_accessor :configuration def configure self.configuration ||= Configuration.new yield(configuration) end def prepare_validators Rails.application.eager_load! # Ensure all controllers and API definitions are loaded ApiRegulator::Validator.build_all(ApiRegulator.api_definitions) end end end
Version data entries
13 entries across 13 versions & 1 rubygems