Sha256: 02e742ce39d3b60ff903c9d24b7fdc8e98aae3c968ec3b817fdadb7febd9495b
Contents?: true
Size: 1.04 KB
Versions: 11
Compression:
Stored size: 1.04 KB
Contents
# frozen_string_literal: true module Mihari module Schemas Options = Dry::Schema.Params do optional(:retry_times).value(:integer).default(Mihari.config.retry_times) optional(:retry_interval).value(:integer).default(Mihari.config.retry_interval) optional(:retry_exponential_backoff).value(:bool).default(Mihari.config.retry_exponential_backoff) optional(:timeout).value(:integer) end IgnoreErrorOptions = Dry::Schema.Params do optional(:ignore_error).value(:bool).default(Mihari.config.ignore_error) end ParallelOptions = Dry::Schema.Params do optional(:parallel).value(:bool).default(Mihari.config.parallel) end AnalyzerOptions = Options | IgnoreErrorOptions | ParallelOptions PaginationOptions = Dry::Schema.Params do optional(:pagination_interval).value(:integer).default(Mihari.config.pagination_interval) optional(:pagination_limit).value(:integer).default(Mihari.config.pagination_limit) end AnalyzerPaginationOptions = AnalyzerOptions | PaginationOptions end end
Version data entries
11 entries across 11 versions & 1 rubygems