generators

package
v2.1.2201-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = generator.Generator{
	"client-ruby",
	"Ruby Client",
	"Generate Ruby client source code",
	[]generator.GeneratorArg{
		{Arg: generator.ArgSpecFile, Required: true},
		{Arg: generator.ArgGeneratePath, Required: true},
	},
	func(specification *spec.Spec, params generator.GeneratorArgsValues) *generator.Sources {
		return GenerateClient(specification, params[generator.ArgGeneratePath])
	},
}
View Source
var Models = generator.Generator{
	"models-ruby",
	"Ruby Models",
	"Generate Ruby models source code",
	[]generator.GeneratorArg{
		{Arg: generator.ArgSpecFile, Required: true},
		{Arg: generator.ArgGeneratePath, Required: true},
	},
	func(specification *spec.Spec, params generator.GeneratorArgsValues) *generator.Sources {
		return GenerateModels(specification, params[generator.ArgGeneratePath])
	},
}

Functions

func DefaultValue

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

func GenerateClient

func GenerateClient(specification *spec.Spec, generatePath string) *generator.Sources

func GenerateModels

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

func PlainRubyType

func PlainRubyType(typ string) string

func RubyType

func RubyType(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