Sha256: ce804fd2903915d1388babad26f2a2e310f0ac1da8db690c6bc03fec131f585f

Contents?: true

Size: 324 Bytes

Versions: 7

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

module Mihari
  module Schemas
    Alert = Dry::Schema.Params do
      required(:rule_id).value(:string)
      required(:artifacts).value(array[:string])
    end

    #
    # Alert schema contract
    #
    class AlertContract < Dry::Validation::Contract
      params(Alert)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mihari-6.3.0 lib/mihari/schemas/alert.rb
mihari-6.2.0 lib/mihari/schemas/alert.rb
mihari-6.1.0 lib/mihari/schemas/alert.rb
mihari-6.0.0 lib/mihari/schemas/alert.rb
mihari-5.7.2 lib/mihari/schemas/alert.rb
mihari-5.7.1 lib/mihari/schemas/alert.rb
mihari-5.7.0 lib/mihari/schemas/alert.rb