validations

package
v2.1.2059-alpha Latest Latest
Warning

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

Go to latest
Published: Oct 1, 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) *generator.Sources

Types

type Validation

type Validation interface {
	RuntimeTypeSamePackage(typ *spec.TypeDef) string
	RuntimeType(typ *spec.TypeDef) string
	SetupLibrary(validationModule modules.Module) *generator.CodeFile
	Models(models []*spec.NamedModel, validationModule modules.Module, module modules.Module) *generator.CodeFile
	WriteParamsType(w *generator.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