This tool is used for generating OpenAPI specification swagger.json
for Kubeflow/tf-operator.
The specification includes model definitions and routing information, which is necessary to generate client libraries.
$ go install github.com/kubeflow-incubator/genspec
$ genspec --output swagger.json
Complete usage:
$ genspec --help
Generate OpenAPI specification for TFJob
Usage:
genspec [flags]
Flags:
-h, --help help for genspec
--output string Path to write OpenAPI spec file (default "swagger.json")
This work is inspired by tamalsaha/kube-openapi-generator.