Sha256: ba60554107196d447844bce888316e7b057ec757f318ad2942be4ac4b8ff5d78

Contents?: true

Size: 961 Bytes

Versions: 8

Compression:

Stored size: 961 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Schemas
    #
    # Enricher schemas
    #
    module Enrichers
      extend Concerns::Orrable

      MMDB = Dry::Schema.Params do
        required(:enricher).value(Types::String.enum(*Mihari::Enrichers::MMDB.class_keys))
        optional(:options).hash(Options)
      end

      Whois = Dry::Schema.Params do
        required(:enricher).value(Types::String.enum(*Mihari::Enrichers::Whois.class_keys))
        optional(:options).hash(Options)
      end

      Shodan = Dry::Schema.Params do
        required(:enricher).value(Types::String.enum(*Mihari::Enrichers::Shodan.class_keys))
        optional(:options).hash(Options)
      end

      GooglePublicDNS = Dry::Schema.Params do
        required(:enricher).value(Types::String.enum(*Mihari::Enrichers::GooglePublicDNS.class_keys))
        optional(:options).hash(Options)
      end
    end

    Enricher = Schemas::Enrichers.get_or_composition
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mihari-7.1.1 lib/mihari/schemas/enricher.rb
mihari-7.1.0 lib/mihari/schemas/enricher.rb
mihari-7.0.5 lib/mihari/schemas/enricher.rb
mihari-7.0.4 lib/mihari/schemas/enricher.rb
mihari-7.0.3 lib/mihari/schemas/enricher.rb
mihari-7.0.2 lib/mihari/schemas/enricher.rb
mihari-7.0.1 lib/mihari/schemas/enricher.rb
mihari-7.0.0 lib/mihari/schemas/enricher.rb