validator

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package validator provides OpenAPI specification validation utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

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

Validator provides validation functionality for OpenAPI specifications.

func New

func New() *Validator

New creates a new validator with default context.

func NewWithContext

func NewWithContext(ctx context.Context) *Validator

NewWithContext creates a new validator with the given context.

func (*Validator) Validate

func (v *Validator) Validate(doc *openapi3.T) error

Validate validates an OpenAPI specification.

func (*Validator) ValidateWithOptions

func (v *Validator) ValidateWithOptions(doc *openapi3.T, opts ...openapi3.ValidationOption) error

ValidateWithOptions validates with custom validation options.

Jump to

Keyboard shortcuts

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