validations

package
v2.1.1655 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateModels

func GenerateModels(specification *spec.Spec, validation string, generatePath string) *sources.Sources

Types

type Validation

type Validation interface {
	RuntimeType(typ *spec.TypeDef) string
	RuntimeTypeFromPackage(customTypesPackage string, typ *spec.TypeDef) string
	SetupLibrary(validationModule modules.Module) *sources.CodeFile
	VersionModels(version *spec.Version, validationModule modules.Module, module modules.Module) *sources.CodeFile
	WriteParamsType(w *sources.Writer, typeName string, params []spec.NamedParam)
}

func New

func New(validation string) Validation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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