spec

package
v0.0.0-...-5da7bf1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FileRegex = ".(yml|yaml|json)$"

Functions

func Load

func Load(relative string, options ...Option) (doc *openapi3.T, err error)

Load loads a single spec from the given relative or absolute path

func LoadAll

func LoadAll(regex, dirPath string, options ...Option) (map[string]*openapi3.T, error)

LoadAll loads all specs that match the given regex from the given dirPath

func Paths

func Paths(regex, dirPath string) (string, []string, error)

Paths returns the absolute dir path and a list of template file names

Types

type Option

type Option func(options *loadOptions)

func DisableSchemaFormatValidation

func DisableSchemaFormatValidation() Option

func EnableSchemaFormatValidation

func EnableSchemaFormatValidation() Option

Jump to

Keyboard shortcuts

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