Documentation
¶
Overview ¶
get json from stdin and return json with v2 objects and v2 relations
Index ¶
Constants ¶
View Source
const ( AppName = "ds-load-openapi" AppDescription = "OpenAPI directory loader" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CLI ¶
type CLI struct { Config kong.ConfigFlag `help:"Configuration file path" short:"c"` Version VersionCmd `cmd:"" help:"version information"` Fetch FetchCmd `cmd:"" help:"fetch openapi data"` Transform TransformCmd `cmd:"" help:"transform openapi data"` ExportTransform ExportTransformCmd `cmd:"" help:"export default transform template"` Exec ExecCmd `cmd:"" help:"fetch and transform openapi data" default:"withargs"` Verbosity int `short:"v" type:"counter" help:"Use to increase output verbosity."` Verify VerifyCmd `cmd:"verify" help:"verify fetcher configuration and credentials"` }
type ExecCmd ¶
type ExecCmd struct { FetchCmd TransformCmd }
type ExportTransformCmd ¶
type ExportTransformCmd struct{}
type FetchCmd ¶
type FetchCmd struct { Directory string `short:"d" help:"OpenAPI Spec Directory" env:"OPENAPI_DIRECTORY"` URL string `short:"u" help:"OpenAPI Spec URL" env:"OPENAPI_URL"` IDFormat string `short:"f" help:"ID Format (base64, canonical, default)" env:"OPENAPI_IDFORMAT"` ServiceName string `short:"n" help:"Service name when importing from a URL" env:"OPENAPI_SERVICE_NAME"` }
type TransformCmd ¶
type TransformCmd struct {
Template string `name:"template" short:"t" env:"DS_TEMPLATE_FILE" help:"transformation template file path" type:"path" optional:""`
}
type VersionCmd ¶
type VersionCmd struct{}
func (*VersionCmd) Run ¶
func (cmd *VersionCmd) Run() error
Click to show internal directories.
Click to hide internal directories.