Documentation
¶
Overview ¶
Package schema provides JSON Schema generation for structured evaluation types.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ClaimsSchemaJSON []byte
ClaimsSchemaJSON is the embedded JSON Schema for ClaimsReport.
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.
var RubricSchemaJSON []byte
RubricSchemaJSON is the embedded JSON Schema for Rubric.
var RubricSetSchemaJSON []byte
RubricSetSchemaJSON is the embedded JSON Schema for RubricSet — the rubric definition, including the rich weighted-criteria form.
var SummarySchemaJSON []byte
SummarySchemaJSON is the embedded JSON Schema for SummaryReport.
Functions ¶
func GenerateClaimsSchema ¶ added in v0.6.0
GenerateClaimsSchema generates JSON Schema for ClaimsReport.
func GenerateEnumsJSON ¶ added in v0.7.0
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
GenerateRubricSchema generates JSON Schema for Rubric.
func GenerateRubricSetSchema ¶ added in v0.10.0
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 ¶
GenerateSummarySchema generates JSON Schema for SummaryReport.
func WriteSchemaFile ¶
WriteSchemaFile writes schema bytes to a file.
Types ¶
This section is empty.