validator

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CtiValidator

type CtiValidator struct {
	// contains filtered or unexported fields
}

func MakeCtiValidator

func MakeCtiValidator() *CtiValidator

func (*CtiValidator) AddEntities added in v0.2.0

func (v *CtiValidator) AddEntities(entities cti.Entities) error

func (*CtiValidator) AddFromFile added in v0.2.0

func (v *CtiValidator) AddFromFile(path string) error

func (*CtiValidator) FindInheritedAnnotation

func (v *CtiValidator) FindInheritedAnnotation(id string, key cti.GJsonPath, predicate func(*cti.Annotations) bool) *cti.Annotations

func (*CtiValidator) GetMergedSchema

func (v *CtiValidator) GetMergedSchema(id string) (map[string]interface{}, error)

func (*CtiValidator) Reset

func (v *CtiValidator) Reset()

func (*CtiValidator) Validate

func (v *CtiValidator) Validate(current *cti.Entity) error

func (*CtiValidator) ValidateAll

func (v *CtiValidator) ValidateAll() []error

Jump to

Keyboard shortcuts

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