lib/mihari/schemas/rule.rb in mihari-3.3.0 vs lib/mihari/schemas/rule.rb in mihari-3.4.0
- old
+ new
@@ -62,9 +62,12 @@
required(:queries).value(:array).each { Analyzer | Spyse | ZoomEye | Urlscan | Crtsh }
optional(:allowed_data_types).value(array[DataTypes]).default(ALLOWED_DATA_TYPES)
optional(:disallowed_data_values).value(array[:string]).default([])
+
+ optional(:ignore_old_artifacts).value(:bool).default(false)
+ optional(:ignore_threshold).value(:integer).default(0)
end
class RuleContract < Dry::Validation::Contract
include Mihari::Mixins::DisallowedDataValue