outputschema

package
v0.269.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 1 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 outputschema names the published JSON Schemas that describe what each command prints under --json. The schemas themselves are generated by tools/schemagen from the types each command package declares in OutputTypes.

Index

Constants

View Source
const BaseURL = "https://sergiught.github.io/openfga-cli/schemas/output/"

BaseURL is where the generated schemas are published.

View Source
const EnvelopePath = "error"

EnvelopePath is the pseudo command path of the error envelope; its schema is error.v1.json.

Variables

This section is empty.

Functions

func FileName

func FileName(path string) string

FileName maps a command path to its schema file name: "ofga tuples write" -> "tuples-write.v1.json".

func URL

func URL(path string) string

URL is the published address, and the $id, of a command's schema.

Types

type Handwritten

type Handwritten struct{}

Handwritten marks an output whose schema is a hand-written file under tools/schemagen/handwritten/<FileName(path)> (used for map[string]any outputs and outputs that vary by mode, such as --dry-run).

Directories

Path Synopsis
Package outputschematest validates command output against the committed JSON Schema files, so each command package can prove its schema describes exactly what --json prints.
Package outputschematest validates command output against the committed JSON Schema files, so each command package can prove its schema describes exactly what --json prints.

Jump to

Keyboard shortcuts

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