openapi_cases

package
v1.27.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllOpenAPIDirs

func GetAllOpenAPIDirs() ([]string, error)

func ValidateCase

func ValidateCase(validator *validation.ValuesValidator, moduleName string, schema validation.SchemaType, testCase json.RawMessage) error

Types

type TestCase

type TestCase struct {
	ConfigValues []json.RawMessage
	Values       []json.RawMessage
}

type TestCases

type TestCases struct {
	Positive TestCase
	Negative TestCase
}

func ParseCasesTestFile

func ParseCasesTestFile(filename string) (TestCases, error)

func (*TestCases) HaveConfigValuesCases

func (t *TestCases) HaveConfigValuesCases() bool

func (*TestCases) HaveValuesCases

func (t *TestCases) HaveValuesCases() bool

Jump to

Keyboard shortcuts

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