schema

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package schema provides JSON Schema generation for structured evaluation types.

Index

Constants

This section is empty.

Variables

View Source
var ClaimsSchemaJSON []byte

ClaimsSchemaJSON is the embedded JSON Schema for ClaimsReport.

View Source
var EnumDefinitions = map[string][]string{
	"ScoreValue":     rubric.ValidScoreValues(),
	"Severity":       rubric.ValidSeverityValues(),
	"DecisionStatus": rubric.ValidDecisionStatusValues(),
	"EvaluationType": rubric.ValidEvaluationTypeValues(),
	"ScaleType":      rubric.ValidScaleTypeValues(),
}

EnumDefinitions contains all enum values for the structured evaluation types. These are exported for cross-language tooling that needs to know valid values.

View Source
var RubricSchemaJSON []byte

RubricSchemaJSON is the embedded JSON Schema for Rubric.

View Source
var SummarySchemaJSON []byte

SummarySchemaJSON is the embedded JSON Schema for SummaryReport.

Functions

func GenerateClaimsSchema added in v0.6.0

func GenerateClaimsSchema() ([]byte, error)

GenerateClaimsSchema generates JSON Schema for ClaimsReport.

func GenerateEnumsJSON added in v0.7.0

func GenerateEnumsJSON() ([]byte, error)

GenerateEnumsJSON generates a JSON file containing all enum definitions. This is useful for cross-language tooling that needs to validate enum values.

func GenerateRubricSchema added in v0.6.0

func GenerateRubricSchema() ([]byte, error)

GenerateRubricSchema generates JSON Schema for Rubric.

func GenerateSummarySchema

func GenerateSummarySchema() ([]byte, error)

GenerateSummarySchema generates JSON Schema for SummaryReport.

func WriteSchemaFile

func WriteSchemaFile(path string, data []byte) error

WriteSchemaFile writes schema bytes to a file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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