openapi3Struct

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(p Parser) Parser

func WithPackagePaths

func WithPackagePaths(paths []string) Option

type Parser

type Parser struct {
	T openapi3.T
	// contains filtered or unexported fields
}

func NewParser

func NewParser(t openapi3.T, options ...Option) *Parser

func (*Parser) AddPath

func (p *Parser) AddPath(path domain.Path)

func (*Parser) ParseSchemasFromStructs

func (p *Parser) ParseSchemasFromStructs() error

func (*Parser) SaveJsonToFile

func (p *Parser) SaveJsonToFile(path string) error

func (*Parser) SaveYamlToFile

func (p *Parser) SaveYamlToFile(path string) error

func (*Parser) Validate

func (p *Parser) Validate(ctx context.Context) error

Validate resolves refs and validates schema

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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