validation

package
v0.0.0-...-0b99702 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeselectAllEndpoints

func DeselectAllEndpoints(endpoints []models.EndpointInfo) []models.EndpointInfo

DeselectAllEndpoints marks all endpoints as deselected

func ExtractEndpoints

func ExtractEndpoints(specPath string) ([]models.EndpointInfo, error)

ExtractEndpoints parses an OpenAPI spec and extracts all endpoints

func FilterEndpoints

func FilterEndpoints(endpoints []models.EndpointInfo, query string) []models.EndpointInfo

FilterEndpoints filters endpoints based on a search query

func GetSelectedEndpoints

func GetSelectedEndpoints(endpoints []models.EndpointInfo) []models.EndpointInfo

GetSelectedEndpoints returns only the selected endpoints

func SelectAllEndpoints

func SelectAllEndpoints(endpoints []models.EndpointInfo) []models.EndpointInfo

SelectAllEndpoints marks all endpoints as selected

func ValidateHeaders

func ValidateHeaders(headers http.Header, spec map[string]*openapi3.HeaderRef) []string

validateHeaders validates response headers against OpenAPI spec This is a placeholder for future implementation

func ValidateResponse

func ValidateResponse(resp *http.Response, operation *openapi3.Operation, statusCode int) models.ValidationResult

validateResponse validates an HTTP response against OpenAPI spec Returns validation result with detailed error information

func ValidateResponseBody

func ValidateResponseBody(body []byte, schema *openapi3.Schema) []string

validateResponseBody validates response body against OpenAPI schema This is a placeholder for future implementation

func ValidateSpec

func ValidateSpec(filePath string) (string, error)

validateSpec validates an OpenAPI specification file Returns success message or error with helpful suggestions

Types

This section is empty.

Jump to

Keyboard shortcuts

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