rules

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CveRecordStatePublished = "PUBLISHED"
	CveRecordStateRejected  = "REJECTED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ValidationError

type ValidationError struct {
	Text     string
	JsonPath string
}

func CheckAffectedProduct

func CheckAffectedProduct(json *string) []ValidationError

func CheckCvssV3BaseSeverity

func CheckCvssV3BaseSeverity(json *string) []ValidationError

func CheckInvalidVersion added in v0.3.0

func CheckInvalidVersion(json *string) []ValidationError

CheckInvalidVersion returns an array of detected version-related ValidationError findings. It checks that the affected.versions sub-fields are used correctly.

func CheckLeadingTrailingSpace

func CheckLeadingTrailingSpace(json *string) []ValidationError

func CheckLength

func CheckLength(json *string) []ValidationError

func CheckRefProtocol

func CheckRefProtocol(json *string) []ValidationError

func DuplicateRefs

func DuplicateRefs(json *string) []ValidationError

Jump to

Keyboard shortcuts

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