/genspec

Temporary Code for Specification Generation

Primary LanguageGoApache License 2.0Apache-2.0

genspec

Build Status

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.

Installation

$ go install github.com/kubeflow-incubator/genspec

Generate Swagger

$ 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")

Acknowledgements

This work is inspired by tamalsaha/kube-openapi-generator.