Help us shape the future of Go! Take the 2026 Go Developer Survey

schema

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 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(),
	"EvaluationMethod": rubric.ValidEvaluationMethodValues(),
	"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 RubricSetSchemaJSON []byte

RubricSetSchemaJSON is the embedded JSON Schema for RubricSet — the rubric definition, including the rich weighted-criteria form.

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 GenerateRubricSetSchema added in v0.10.0

func GenerateRubricSetSchema() ([]byte, error)

GenerateRubricSetSchema generates JSON Schema for RubricSet — the rubric definition, including the rich weighted-criteria form. This is the canonical spec downstream tools author rubrics against.

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