validation

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 13 Imported by: 1

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

func ValidateGlideYML(glideYMLFile io.Reader) error

ValidateGlideYML 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 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.

Jump to

Keyboard shortcuts

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