spec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

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

Loader handles loading and parsing OpenAPI specifications

func NewLoader

func NewLoader() *Loader

NewLoader creates a new spec loader

func (*Loader) LoadFromFile

func (l *Loader) LoadFromFile(ctx context.Context, path string) (*openapi3.T, error)

LoadFromFile loads an OpenAPI or Swagger spec from a file path

func (*Loader) LoadFromURL

func (l *Loader) LoadFromURL(ctx context.Context, specURL string) (*openapi3.T, error)

LoadFromURL loads an OpenAPI or Swagger spec from a URL

Jump to

Keyboard shortcuts

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