validation

package
v6.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(d loads.Document, generateJSClient bool) error

Validate returns an error if the swagger file is invalid or uses fields we don't support. Note that this isn't a comprehensive check for all things we don't support, so this may not return an error, but the Swagger file might have values we don't support

func ValidateGlideLock

func ValidateGlideLock(glideLockFile io.Reader) error

ValidateGlideLock looks at a user's glide.yml and makes sure certain dependencies that wag requires are present and locked to the correct version.

func ValidateGlideYAML

func ValidateGlideYAML(glideYMLFile io.Reader) error

ValidateGlideYAML looks at a user's glide.yml and makes sure certain dependencies that wag requires are present and locked to the correct version.

Types

type GlideLock

type GlideLock struct {
	Imports []LockedVersion `yaml:"imports"`
}

GlideLock unmarshals the parts of a glide.lock file we care about.

type GlideYML

type GlideYML struct {
	Imports []Import `yaml:"import"`
}

GlideYML unmarshals the parts of a glide.yml file we care about.

type Import

type Import struct {
	Package string `yaml:"package"`
	Version string `yaml:"version"`
}

Import contained within a glide.yml.

type ListOfPeerDependencyError

type ListOfPeerDependencyError struct {
	Errors []*PeerDependencyError
}

ListOfPeerDependencyError is a list of PeerDependency errors

func (*ListOfPeerDependencyError) Error

func (e *ListOfPeerDependencyError) Error() string

type LockedVersion

type LockedVersion struct {
	Name    string `yaml:"name"`
	Version string `yaml:"version"`
}

LockedVersion contained within a glide.lock.

type PeerDependencyError

type PeerDependencyError struct {
	Package string
	Version string
	File    string
}

PeerDependencyError occurs when glide.yml and/or glide.lock dont have the required dependency versions for wag

func (*PeerDependencyError) Error

func (e *PeerDependencyError) Error() string

Jump to

Keyboard shortcuts

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