Sha256: 9bc535665afca1660c6cac8550e58c61956dcbc664a2abb81649d0c12d093053
Contents?: true
Size: 644 Bytes
Versions: 19
Compression:
Stored size: 644 Bytes
Contents
# frozen_string_literal: true require "dry/schema" require "dry/validation" require "mihari/schemas/macros" 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
19 entries across 19 versions & 1 rubygems