swagger

package
v0.0.0-...-e3cc5f0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOptionalProperties

func GetOptionalProperties(propName string, prop spec.Schema, indent string, path []string) []string

Types

type Endpoint

type Endpoint struct {
	ConditionalProperties []string `json:"conditionalProperties"`
	Method                string   `json:"method"`
	Path                  string   `json:"path"`
	StatusCode            int      `json:"status_code"`
}

type NonManadatoryFields

type NonManadatoryFields struct {
	SwaggerPath string     `json:"swagger_path"`
	Endpoints   []Endpoint `json:"endpoints"`
}

func ParseSchema

func ParseSchema(swaggerPath string, logger *logrus.Logger) (*NonManadatoryFields, error)

func (*NonManadatoryFields) PrintResponses

func (f *NonManadatoryFields) PrintResponses(operation *spec.Operation, path string, method string, logger *logrus.Logger)

Jump to

Keyboard shortcuts

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