Documentation
¶
Overview ¶
Package schematest validates CycloneDX JSON documents against the specification's schema for the version the document declares (1.6 or 1.7), using the schemas embedded in internal/cdxschema. It is test support only: nothing in the shipped binary imports it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SchemaDir ¶
func SchemaDir() string
SchemaDir returns the directory holding the vendored 1.6 schema used to pin the closed vocabularies in code (internal/cbom/vocab_test.go), independent of the test's working directory.
func Validate ¶
Validate fails t if doc is not a valid CycloneDX JSON document of the version it declares.
func ValidateErr ¶
ValidateErr is Validate for callers that want the error.
Types ¶
This section is empty.