Sha256: 77c0844110b0071e795e2edc6a2f32a500868a3421f3f9bb31dd3bd93c875773

Contents?: true

Size: 772 Bytes

Versions: 2

Compression:

Stored size: 772 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Schemas
    module Enrichers
      IPInfo = Dry::Schema.Params do
        required(:enricher).value(Types::String.enum("ipinfo"))
        optional(:api_key).value(:string)
        optional(:options).hash(Options)
      end

      Whois = Dry::Schema.Params do
        required(:enricher).value(Types::String.enum("whois"))
        optional(:options).hash(Options)
      end

      Shodan = Dry::Schema.Params do
        required(:enricher).value(Types::String.enum("shodan"))
        optional(:options).hash(Options)
      end

      GooglePublicDNS = Dry::Schema.Params do
        required(:enricher).value(Types::String.enum("google_public_dns"))
        optional(:options).hash(Options)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mihari-5.6.1 lib/mihari/schemas/enricher.rb
mihari-5.6.0 lib/mihari/schemas/enricher.rb