validation

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package validation provides JSON schema validation for PCA models

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateWithSchema

func ValidateWithSchema(data []byte, schemaName string, version string) error

ValidateWithSchema validates JSON data against a specific schema file This is a simplified version for basic validation

Types

type ModelValidator

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

ModelValidator validates PCA model JSON data against schemas

func NewModelValidator

func NewModelValidator(version string) (*ModelValidator, error)

NewModelValidator creates a new validator for the specified schema version

func (*ModelValidator) ValidateModel

func (v *ModelValidator) ValidateModel(data []byte) error

ValidateModel validates PCA model JSON data against the schema

Jump to

Keyboard shortcuts

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