struct
CycloneDX::VersionGate::Violation
- CycloneDX::VersionGate::Violation
- Struct
- Value
- Object
Overview
A single spec-version violation: the JSON path of the owning object, the offending field, the minimum spec version it requires, and a description of what the gate did about it.
#repaired says whether the gate could make the document valid anyway.
Almost everything is repairable — a too-new field is stripped, a too-new
enum value is swapped for its catch-all — and those are a lossy downgrade,
not an invalid document. The exception is an enum with no catch-all
(component/@type), where the value has to stay and the output really is
invalid. Validator reports the two differently for that reason.
Defined in:
cyclonedx/version_gate.crConstructors
Instance Method Summary
- #clone
- #copy_with(path _path = @path, field _field = @field, min_version _min_version = @min_version, message _message = @message, repaired _repaired = @repaired)
- #field : String
- #message : String
- #min_version : String
- #path : String
- #repaired : Bool
Constructor Detail
def self.new(path : String, field : String, min_version : String, message : String, repaired : Bool = true)
#
Instance Method Detail
def copy_with(path _path = @path, field _field = @field, min_version _min_version = @min_version, message _message = @message, repaired _repaired = @repaired)
#