libopenapi

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 27 Imported by: 0

Documentation

Overview

Package libopenapi implements provider.Provider and is the only importer of libopenapi.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Provider)

func WithDebug

func WithDebug(w io.Writer) Option

WithDebug sends libopenapi's own logs to w.

type Provider

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

Provider reads specs with libopenapi. Its logs go nowhere unless WithDebug is set.

func New

func New(opts ...Option) *Provider

func (*Provider) ApplyOverlay

func (p *Provider) ApplyOverlay(ctx context.Context, data, overlay []byte) (out []byte, diags []diag.Diagnostic, err error)

func (*Provider) Parse

func (p *Provider) Parse(ctx context.Context, data []byte, opts provider.ParseOptions) (doc *spec.Document, diags []diag.Diagnostic, err error)

Jump to

Keyboard shortcuts

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