parse

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEmptySpecTypePath = errors.New("empty spec type path")

Functions

func Parse

func Parse(path string) (api.API, error)

Parse -.

Types

type SpecFileError

type SpecFileError struct {
	Path string
}

SpecFileError -.

func (*SpecFileError) Error

func (e *SpecFileError) Error() string

Error -.

type SpecType

type SpecType string
const (
	OpenAPI SpecType = "OpenAPI"
	GraphQL SpecType = "GraphQL"
	Unknown SpecType = "Unknown"
)

func GetSpecType

func GetSpecType(path string) (SpecType, error)

GetSpecType returns specification type for path

type SpecTypeError

type SpecTypeError struct {
	Path string
}

SpecTypeError -.

func (*SpecTypeError) Error

func (e *SpecTypeError) Error() string

Error -.

Jump to

Keyboard shortcuts

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