class CycloneDX::ExternalReference

Included Modules

Defined in:

cyclonedx/models.cr

Constant Summary

VALID_TYPES = ["vcs", "issue-tracker", "website", "advisories", "bom", "mailing-list", "social", "chat", "documentation", "support", "source-distribution", "distribution", "distribution-intake", "license", "build-meta", "build-system", "release-notes", "security-contact", "model-card", "log", "configuration", "evidence", "formulation", "attestation", "threat-model", "adversary-model", "risk-assessment", "vulnerability-assertion", "exploitability-statement", "pentest-report", "static-analysis-report", "dynamic-analysis-report", "runtime-analysis-report", "component-analysis-report", "maturity-report", "certification-report", "codified-infrastructure", "quality-metrics", "poam", "electronic-signature", "digital-signature", "rfc-9116", "patent", "patent-family", "patent-assertion", "citation", "other"]

Valid externalReference type enum values per the CycloneDX schema (externalReferenceType). "other" is the catch-all fallback, which the version gate downgrades too-new types to.

This is the union across all supported spec versions; see VersionGate::EXTERNAL_REFERENCE_TYPE_VERSIONS for when each was added.

Constructors

Instance Method Summary

Constructor Detail

def self.new(ref_type : String, url : String, comment : String | Nil = nil, hashes : Array(Hash) | Nil = nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def comment : String | Nil #

[View source]
def hashes : Array(Hash) | Nil #

[View source]
def ref_type : String #

[View source]
def to_xml(xml : XML::Builder) #

[View source]
def url : String #

[View source]