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