validator

package
v0.0.0-...-ab33fbf Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package validator provides OpenAPI spec validation functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SpecLoader

type SpecLoader interface {
	LoadAndValidate(ctx context.Context, specPath string) (*extractor.ValidateResult, error)
}

SpecLoader defines the interface for loading and validating OpenAPI specs.

type Validator

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

Validator validates OpenAPI specifications.

func NewValidator

func NewValidator() *Validator

NewValidator creates a new Validator instance.

func (*Validator) Validate

func (v *Validator) Validate(ctx context.Context, specPath string) (*extractor.ValidateResult, error)

Validate validates an OpenAPI spec file.

Jump to

Keyboard shortcuts

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