go run main.go --input=k8s.io/kubelet/config/v1beta1/types.go \
--version=v1beta1 --title=kubelet.config.k8s.io > swagger.json
flags:
-input string
comma separated list of files to parse
-openapi-version int
OpenAPI version - can be 2 or 3 (default 2)
-title string
title to be placed in the OpenAPI info
-version string
version to be placed in the OpenAPI info
- output goes on stdout
- preview the
swagger.json
at https://editor.swagger.io/