openapi

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

View Source
var Cmd = &Z.Cmd{
	Name:      `openapi`,
	Summary:   `encapsulated commands for OpenAPITools generator`,
	Version:   `v0.0.1`,
	Copyright: `Copyright 2021 openapi (bonzai branch) Authors`,
	License:   `Apache-2.0`,
	Source:    `git@github.com:rwxrob/openapi.git`,
	Issues:    `github.com/rwxrog/openapi/issues`,

	Commands: []*Z.Cmd{
		help.Cmd, runCmd,
	},

	Description: `
		The **{{.Name}}** command encapsulates and extends the commands
		available from the openapitools/openapi-generator-cli project
		(written in Java).  `,
}

Functions

func Run

func Run(args ...string) error
Example
package main

import (
	"github.com/rwxrob/openapi"
)

func main() {
	openapi.Run("version")
}
Output:
6.0.1

func Validate

func Validate(file string) error
Example
package main

import (
	"github.com/rwxrob/openapi"
)

func main() {
	openapi.Validate("testdata/openapi.yaml")
}
Output:
blah

Types

This section is empty.

Directories

Path Synopsis
cmd
openapi command

Jump to

Keyboard shortcuts

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