validation

package
v2.0.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2019 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) 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 added in v1.5.4

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 added in v1.5.4

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 added in v1.5.4

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

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

type GlideYML added in v1.2.8

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

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

type Import added in v1.2.8

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

Import contained within a glide.yml.

type ListOfPeerDependencyError added in v1.5.4

type ListOfPeerDependencyError struct {
	Errors []*PeerDependencyError
}

ListOfPeerDependencyError is a list of PeerDependency errors

func (*ListOfPeerDependencyError) Error added in v1.5.4

func (e *ListOfPeerDependencyError) Error() string

type LockedVersion added in v1.5.4

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

LockedVersion contained within a glide.lock.

type PeerDependencyError added in v1.5.4

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 added in v1.5.4

func (e *PeerDependencyError) Error() string

Jump to

Keyboard shortcuts

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