Skip to content

pinguibot/schemasonnet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 72.7%
  • Jsonnet 18.5%
  • Nix 8.8%