Sha256: 79f244e2fe842c7cd8e3c2ba204c587c4972e57326e0a9d7746c2a2c5bbeb0cc
Contents?: true
Size: 564 Bytes
Versions: 6
Compression:
Stored size: 564 Bytes
Contents
# frozen_string_literal: true module Mihari module Schemas AnalyzerRun = Dry::Schema.Params do required(:title).value(:string) required(:description).value(:string) required(:source).value(:string) required(:artifacts).value(array[:string]) optional(:tags).value(array[:string]).default([]) optional(:ignoreOldArtifacts).value(:bool).default(false) optional(:ignoreThreshold).value(:integer).default(0) end class AnalyzerRunContract < Dry::Validation::Contract params(AnalyzerRun) end end end
Version data entries
6 entries across 6 versions & 1 rubygems