Documentation
¶
Overview ¶
Package cdxschema validates CycloneDX JSON documents against the specification's own schemas, embedded in the binary so validation needs no network and no files.
It serves the import path (PRD-003 REQ-ING-2): a third-party document is checked against the schema of the version it declares before anything is stored. Versions 1.6 and 1.7 are accepted, because earlier versions have no cryptographic assets. The schemas are the specification's, unmodified, with their provenance and checksums in schemas/MANIFEST.md.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Supported = []string{"1.6", "1.7"}
Supported lists the specification versions a document may declare.
Functions ¶
func Curves ¶
func Curves() []string
Curves lists the elliptic curve identifiers of the 1.7 cryptography registry.
func Families ¶
func Families() []string
Families lists the algorithm families of the 1.7 cryptography registry.
func IsSupported ¶
IsSupported reports whether specVersion may be imported.
Types ¶
type Problem ¶
Problem is one reason a document is not valid, short enough to show to a person.