parser

package
v0.0.0-...-81fd40d Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Normalizer

type Normalizer struct {
}

func NewNormalizer

func NewNormalizer() *Normalizer

func (*Normalizer) Normalize

func (n *Normalizer) Normalize(doc *openapi3.T) (*core.Spec, error)

type Parser

type Parser struct {
}

func NewParser

func NewParser() *Parser

func (*Parser) LoadSpec

func (p *Parser) LoadSpec(ctx context.Context, specPath string) (*openapi3.T, error)

LoadSpec loads an OpenAPI specification from a file path or HTTP/HTTPS URL. Returns the raw openapi3 document.

func (*Parser) ValidateSpec

func (p *Parser) ValidateSpec(ctx context.Context, spec *openapi3.T) error

ValidateSpec validates an OpenAPI specification

Jump to

Keyboard shortcuts

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