crd2openapi

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 3 Imported by: 0

README

crd2openapi

A tool for converting CRD (Custom Resource Definition) to open api json

support flags

name short type default usage
file f string - (stdout) filename or path to the CRD to be converted.
output o string - (stdout) out openapi json file.
pretty p bool true print the json pretty.
title t string empty string the tile of the swagger json.
indent I int 4 the indent of json line , only enable when pretty is true.
version v string 1.0.0 the version of the swagger json.
description d string kubernetes crd doc the description of the swagger json.

todo

  • support openapi style json.
  • support Built-in swagger server.
  • support post-render.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
cmd

Jump to

Keyboard shortcuts

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