openapi

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

Checks openapi spec:

  • Enum values have to be started with a Capital letter
  • Enum values have to be unique
  • some keys should not have a default value

Documentation

Index

Constants

View Source
const (
	ID = "openapi"
)

Variables

This section is empty.

Functions

func GetOpenAPIYAMLFiles

func GetOpenAPIYAMLFiles(rootPath string) ([]string, error)

GetOpenAPIYAMLFiles returns all .yaml files which are placed into openapi/ | crds/ directory

func RunOpenAPIValidator

func RunOpenAPIValidator(fileC chan fileValidation, cfg *config.OpenAPISettings) chan fileValidation

RunOpenAPIValidator runs validator, get channel with file paths and returns channel with results

Types

type OpenAPI

type OpenAPI struct {
	// contains filtered or unexported fields
}

OpenAPI linter

func New

func New(cfg *config.OpenAPISettings) *OpenAPI

func (*OpenAPI) Desc

func (o *OpenAPI) Desc() string

func (*OpenAPI) Name

func (o *OpenAPI) Name() string

func (*OpenAPI) Run

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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