kotlin

package
v2.1.1778 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Client = generator.Generator{
	"client-kotlin",
	"Kotlin Client",
	"Generate Kotlin client source code",
	[]generator.GeneratorArg{
		{Arg: generator.ArgSpecFile, Required: true},
		{Arg: generator.ArgJsonlib, Required: false, Values: JsonlibKotlinValues},
		{Arg: generator.ArgPackageName, Required: false},
		{Arg: generator.ArgGeneratePath, Required: true},
	},
	func(specification *spec.Spec, params generator.GeneratorArgsValues) *generator.Sources {
		return client.Generate(specification, params[generator.ArgJsonlib], params[generator.ArgPackageName], params[generator.ArgGeneratePath])
	},
}
View Source
var JsonlibKotlinValues = []string{"jackson", "moshi"}
View Source
var Models = generator.Generator{
	"models-kotlin",
	"Kotlin Models",
	"Generate Kotlin models source code",
	[]generator.GeneratorArg{
		{Arg: generator.ArgSpecFile, Required: true},
		{Arg: generator.ArgJsonlib, Required: false, Values: JsonlibKotlinValues},
		{Arg: generator.ArgPackageName, Required: false},
		{Arg: generator.ArgGeneratePath, Required: true},
	},
	func(specification *spec.Spec, params generator.GeneratorArgsValues) *generator.Sources {
		return models.Generate(specification, params[generator.ArgJsonlib], params[generator.ArgPackageName], params[generator.ArgGeneratePath])
	},
}
View Source
var ServerKotlinValues = []string{"micronaut"}
View Source
var Service = generator.Generator{
	"service-kotlin",
	"Kotlin Service",
	"Generate Kotlin service source code",
	[]generator.GeneratorArg{
		{Arg: generator.ArgSpecFile, Required: true},
		{Arg: generator.ArgJsonlib, Required: true, Values: JsonlibKotlinValues},
		{Arg: generator.ArgServer, Required: true, Values: ServerKotlinValues},
		{Arg: generator.ArgPackageName, Required: false},
		{Arg: generator.ArgSwaggerPath, Required: false},
		{Arg: generator.ArgGeneratePath, Required: true},
		{Arg: generator.ArgServicesPath, Required: false},
	},
	func(specification *spec.Spec, params generator.GeneratorArgsValues) *generator.Sources {
		return service.Generate(specification, params[generator.ArgJsonlib], params[generator.ArgServer], params[generator.ArgPackageName], params[generator.ArgSwaggerPath], params[generator.ArgGeneratePath], params[generator.ArgServicesPath])
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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