jsondoc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 5 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 jsondoc reads the JSON schema documented in docs/json-output.md, the single source the CLI and MCP tests check their --json output against.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fields

func Fields(path, title string) ([]string, error)

Fields returns the sorted field names in the first-column tables of the section of the markdown file at path whose "## " heading is title. The "### " subsections below that heading are part of it.

func Keys

func Keys(data []byte) ([]string, error)

Keys returns every object key in the JSON document data, at any depth, sorted and without duplicates.

func Optional

func Optional(path, title string) ([]string, error)

Optional returns the sorted names of the fields of the section (as in Required) whose type column says "optional": absent when empty.

func Required

func Required(path, title string) ([]string, error)

Required returns the sorted names of the fields of the section (a "## " or "### " heading, exactly title, without its subsections) whose type column does not say "optional".

func UniqueSorted

func UniqueSorted(in []string) []string

UniqueSorted returns in sorted, without duplicates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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