json-schema-generator

command module
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

json-schema-generator

Generate JSON schemas from Go structures using controller-tools markers for validation.

This tool outputs a JSON schema for each scanned package that has +fybrik:validation:schema marker. Also, This tool outputs a JSON schema for each scanned type that has +fybrik:validation:object marker. Types in scanned packages that lack the marker are stored in external.json

Usage:
  json-schema-generator [flags]

Flags:
  -h, --help            help for json-schema-generator
  -o, --output string   Directory to save JSON schema artifact to
  -r, --roots strings   Paths and go-style path patterns to use as package roots
  -v, --version         version for json-schema-generator

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
testPkgs
schemapkg
+kubebuilder:validation:Optional +fybrik:validation:schema
+kubebuilder:validation:Optional +fybrik:validation:schema

Jump to

Keyboard shortcuts

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