schema

package
v3.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package schema provides CycloneDX BOM validation against embedded JSON schemas.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SupportedVersions

func SupportedVersions() []string

SupportedVersions returns the list of CDX spec versions supported for validation.

func ValidateCDX

func ValidateCDX(data []byte) (string, error)

ValidateCDX validates raw CycloneDX JSON against embedded schemas. It tries versions from highest (1.7) to lowest (1.4) and returns the first version that validates successfully (short-circuit).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL