segment

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package segment validates the slice tree beyond its JSON Schema.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rules

func Rules(doc map[string]any, ctx kit.RuleContext) []kit.Problem

Rules refuses a segment that is its own ancestor.

Segments are a tree — a dimension is one with no parent, its values are its children — and a cycle in it is not a deep hierarchy, it is a hierarchy with no top. Everything that walks the tree, to label a gap or to roll a measure up, would walk it forever.

Types

This section is empty.

Jump to

Keyboard shortcuts

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