pub fn detect_format(value: &Value) -> Result<SbomFormat, ParseError>Expand description
Identify an SBOM’s format by inspecting top-level JSON keys without full deserialization.
Detection rules (in order):
bomFormat == "CycloneDX"→ CycloneDX (case-insensitive per spec).spdxVersionpresent → SPDX.schema.urlcontaining “anchore.io/schema/syft” → Syft.
Returns ParseError::UnknownFormat when none match.