validations

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 7 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 {
	RuntimeTypeName(typeName string) string
	RuntimeTypeSamePackage(typ *spec.TypeDef) string
	RuntimeType(typ *spec.TypeDef) string
	SetupLibrary() *generator.CodeFile
	Models(version *spec.Version) *generator.CodeFile
	ErrorModels(httpErrors *spec.HttpErrors) *generator.CodeFile
	WriteParamsType(w *writer.Writer, typeName string, params []spec.NamedParam)
}

func New

func New(validation string, modules *modules.Modules) Validation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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