schemasonnet

command module
v0.0.0-...-3d6e4e8 Latest Latest
Warning

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

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

README

Go Reference Go Report Card Build Status Built with Nix

Schemasonnet

Schemasonnet is a package and CLI that allows generating JSON Schema files from Jsonnet packages containing with Docsonnet type annotations. These generated JSON Schema are useful for statically validating and linting JSON/YAML inputs given to Jsonnet packages.

Usage

Convert Docsonnet type annotations to JSON Schema

Usage:
  schemasonnet [file] [flags]

Flags:
      --ext-code stringArray        Set code value of extVar (Format: key=<code>)
      --ext-code-file stringArray   Set code value of extVar from file (Format: key=filename)
  -V, --ext-str stringArray         Set string value of extVar (Format: key=value)
      --ext-str-file stringArray    Set string value of extVar from file (Format: key=filename)
  -h, --help                        help for schemasonnet
  -J, --jpath strings               Specify an additional library search dir (right-most wins) (default [vendor])
      --tla-code stringArray        Set code value of top level function (Format: key=<code>)
      --tla-code-file stringArray   Set code value of top level function from file (Format: key=filename)
  -A, --tla-str stringArray         Set string value of top level function (Format: key=value)
      --tla-str-file stringArray    Set string value of top level function from file (Format: key=filename)
  -v, --version                     version for schemasonnet

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package embedpkging provides a read-only implementation of the pkging.Pkger interface backed by a Go standard library embed.FS.
Package embedpkging provides a read-only implementation of the pkging.Pkger interface backed by a Go standard library embed.FS.

Jump to

Keyboard shortcuts

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