swagger

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package swagger contains swagger/openapi related helpers to be used in mage targets.

Index

Constants

This section is empty.

Variables

View Source
var (

	// OutputDir is the output directory for the generated files.
	OutputDir = "api"
	// MainGo is the path to the application entrypoint.
	MainGo = ""
	// ExtraArgs passed to the swag command.
	ExtraArgs = []string{"--parseVendor", "--outputTypes", "json,yaml"}
)

Functions

This section is empty.

Types

type Swagger

type Swagger mg.Namespace

Swagger groups together Swagger related tasks.

func (Swagger) Check

func (Swagger) Check() error

Check ensures that the generated files are up to date.

func (Swagger) Create

func (Swagger) Create() error

Create creates a swagger files from source code annotations.

Jump to

Keyboard shortcuts

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