gents

package
v2.1.1144 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IoTs = "io-ts"
View Source
var Superstruct = "superstruct"

Functions

func DefaultValue added in v2.0.289

func DefaultValue(typ *spec.TypeDef, value string) string

func GenerateClient added in v2.1.966

func GenerateClient(specification *spec.Spec, generatePath string, client string, validation string) *gen.Sources

func GenerateModels added in v2.0.289

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

func GenerateService added in v2.0.334

func GenerateService(specification *spec.Spec, swaggerPath string, generatePath string, servicesPath string, server string, validation string) *gen.Sources

func IoTsType

func IoTsType(typ *spec.TypeDef) string

func Module added in v2.0.707

func Module(folderPath string) module

func NewTsWriter

func NewTsWriter() *gen.Writer

func ParamIoTsType added in v2.0.312

func ParamIoTsType(typ *spec.TypeDef) string

func ParamIoTsTypeDefaulted added in v2.0.312

func ParamIoTsTypeDefaulted(param *spec.NamedParam) string

func ParamPlainIoTsType added in v2.0.312

func ParamPlainIoTsType(typ string) string

func ParamPlainSuperstructType added in v2.0.289

func ParamPlainSuperstructType(typ string) string

func ParamSuperstructType added in v2.0.289

func ParamSuperstructType(typ *spec.TypeDef) string

func ParamSuperstructTypeDefaulted added in v2.0.289

func ParamSuperstructTypeDefaulted(param *spec.NamedParam) string

func PlainIoTsType

func PlainIoTsType(typ string) string

func PlainSuperstructType added in v2.0.289

func PlainSuperstructType(typ string) string

func PlainTsType

func PlainTsType(typ string) string

func SuperstructType added in v2.0.289

func SuperstructType(typ *spec.TypeDef) string

func TsType

func TsType(typ *spec.TypeDef) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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