lib/mihari/schemas/enricher.rb in mihari-6.3.0 vs lib/mihari/schemas/enricher.rb in mihari-7.0.0
- old
+ new
@@ -4,14 +4,13 @@
module Schemas
#
# Enricher schemas
#
module Enrichers
- extend Schemas::Mixins
+ extend Concerns::Orrable
- IPInfo = Dry::Schema.Params do
- required(:enricher).value(Types::String.enum(*Mihari::Enrichers::IPInfo.class_keys))
- optional(:api_key).value(:string)
+ 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))