fetcher

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher interface {
	Fetch(definition definitions.Endpoint) ([]TestCase, error)
}

func New

func New() Fetcher

type TestCase

type TestCase struct {
	SchemaEntries      []definitions.SchemaEntry `json:"schemaEntries"`      // SchemaEntries are the schema definitions of every field in the items Data
	Data               map[string]any            `json:"data"`               // Data is the raw response data mapped in a map
	Url                string                    `json:"url"`                // Url is the request url of the item
	EndpointName       string                    `json:"endpointName"`       // EndpointName is the name of the endpoint in the definition file
	Code               int                       `json:"code"`               // Code is the response code of the request
	ExcludedValidators []string                  `json:"excludedValidators"` // ExcludedValidators is a list of validators that should be excluded from the validation
}

Jump to

Keyboard shortcuts

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