validation

package
v2.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EndpointRequest

type EndpointRequest struct {
	Url             string
	QueryParameters map[string]string
	Payload         string
	Variables       definitions.VariableMap
}

type EndpointResponse

type EndpointResponse struct {
	StatusCode int    // StatusCode is the status code of the response
	RawData    any    // RawData is the raw data of the response
	Url        string // Url is the full url of the request
}

func Fetch

func Fetch(request EndpointRequest, definition definitions.Endpoint) (EndpointResponse, error)

requestData sends based on the given request a http GET request and returns the response

type EndpointTestCases

type EndpointTestCases struct {
	Definition   definitions.Endpoint
	HttpRequests []EndpointRequest
}

func Preprocess

func Preprocess(definition definitions.Endpoint) (EndpointTestCases, error)

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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