Skip to content

About

Convert Docsonnet type annotations to JSON Schema

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

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

About

Convert Docsonnet type annotations to JSON Schema

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages