issueschema

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 0 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package issueschema is the issue record's frontmatter schema as DATA: the one list of properties issue.schema.json marks required, held where every gate that asks the question can read it.

It exists for the same reason core/changelog holds the impact enum: the writer and reader of the ledger (core/capture) and the lint that GATES the committed ledger (core/lint) must agree about what a well-formed record carries, and two hand-kept copies of a required-property list drift the moment one side gains a field. It is a leaf — no imports, no filesystem, no transport — because core/capture's own tests import core/lint, so a lint that imported capture back would be an import cycle in test.

Index

Constants

This section is empty.

Variables

View Source
var Required = []string{
	"schema_version", "id", "slug", "severity", "category", "source", "found_during",
}

Required is every property the issue schema marks required, in the order a record writes them. A record missing one is not a lax record: the ledger reader refuses it and skips it, so it goes silently invisible to every capture surface while still sitting in the ledger — which is what record_schema reports.

View Source
var RequiredStrings = Required[1:]

RequiredStrings is Required minus schema_version — the required properties whose value is a string. schema_version carries the integer version and is checked against the readers this repository ships, so it is validated on its own before the string-typed properties are walked. It is a slice OF Required rather than a second literal, so the two can never disagree about the set.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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