class
CycloneDX::ExternalReference
- CycloneDX::ExternalReference
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
cyclonedx/models.crConstant 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_VERSIONSfor when each was added.
Constructors
- .new(ref_type : String, url : String, comment : String | Nil = nil, hashes : Array(Hash) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #comment : String | Nil
- #hashes : Array(Hash) | Nil
- #ref_type : String
- #to_xml(xml : XML::Builder)
- #url : String
Constructor Detail
def self.new(ref_type : String, url : String, comment : String | Nil = nil, hashes : Array(Hash) | Nil = nil)
#