Documentation
¶
Overview ¶
Code generated by strictspec. DO NOT EDIT.
strictspec generator: 0.1.0 schema: strictcode-findings (format_version 1) regenerate: strictspec gen --manifest strictspec.toml
Released under the MIT license (unencumbered). This file is machine-generated; edit the schema and regenerate, never this file.
Index ¶
Constants ¶
const GeneratedBy = "0.1.0"
GeneratedBy is the strictspec release that produced this file. The runtime pairing guard hard-errors unless it matches the linked runtime exactly.
const SchemaFormatVersion = 1
SchemaFormatVersion is the document format_version this validator accepts.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finding ¶
Finding is the frozen typed binding of the "Finding" record. Fields are immutable by convention (shallow-plus-generated-immutability); use With* for copy-on-write.
func (*Finding) WithMessage ¶
WithMessage returns a copy of Finding with Message set to the given value.
func (*Finding) WithSeverity ¶
WithSeverity returns a copy of Finding with Severity set to the given value.
func (*Finding) WithTarget ¶
WithTarget returns a copy of Finding with Target set to the given value.
type Findings ¶
Findings is the frozen typed binding of the "Findings" record. Fields are immutable by convention (shallow-plus-generated-immutability); use With* for copy-on-write.
func ValidateBytes ¶
func ValidateBytes(input []byte, syntax string) (*Findings, []strictspec.Diagnostic)
ValidateBytes is the raw-bytes entry point: lossless parse of input in the given syntax ("json" | "toml" | "jsonl"), then validate. It returns the typed root value (nil when any diagnostic fired) and the ordered diagnostics.
func ValidateBytesWithEvidence ¶
func ValidateBytesWithEvidence(input []byte, syntax string, evidence map[string][]map[string]any) (*Findings, []strictspec.Diagnostic)
ValidateBytesWithEvidence is ValidateBytes plus cross-document resolver evidence for the phase-2 constraint vocabulary.
func ValidateValue ¶
func ValidateValue(v strictspec.Value) (*Findings, []strictspec.Diagnostic)
ValidateValue is the tagged-value entry point: validate an already-parsed tagged document value (from strictspec.LoadValue or a typed constructor).
func (*Findings) WithFindings ¶
WithFindings returns a copy of Findings with Findings set to the given value.
func (*Findings) WithStrictcodeVersion ¶
WithStrictcodeVersion returns a copy of Findings with StrictcodeVersion set to the given value.
func (*Findings) WithWorkspaceRoot ¶
WithWorkspaceRoot returns a copy of Findings with WorkspaceRoot set to the given value.
type Fix ¶
Fix is the frozen typed binding of the "Fix" record. Fields are immutable by convention (shallow-plus-generated-immutability); use With* for copy-on-write.
func (*Fix) WithDescription ¶
WithDescription returns a copy of Fix with Description set to the given value.
type Target ¶
Target is the frozen typed binding of the "Target" record. Fields are immutable by convention (shallow-plus-generated-immutability); use With* for copy-on-write.