Documentation ¶
Index ¶
- Variables
- func DefaultValue(typ *spec.TypeDef, value string) string
- func GenerateCirceModels(specification *spec.Spec, packageName string, generatePath string) *generator.Sources
- func GeneratePlayService(specification *spec.Spec, swaggerPath string, generatePath string, ...) *generator.Sources
- func GenerateSttpClient(specification *spec.Spec, packageName string, generatePath string) *generator.Sources
- func JoinParams(params []string) string
- func NewScalaWriter() generator.Writer
- func PlainScalaType(typ string) string
- func ScalaType(typ *spec.TypeDef) string
- type Package
Constants ¶
This section is empty.
Variables ¶
View Source
var Client = generator.Generator{ "client-scala", "Scala Client", "Generate Scala 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 GenerateSttpClient(specification, "", params[generator.ArgGeneratePath]) }, }
View Source
var Models = generator.Generator{ "models-scala", "Scala Models", "Generate Scala 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 GenerateCirceModels(specification, "", params[generator.ArgGeneratePath]) }, }
View Source
var ScalaConfig = generator.Config{" ", 2, nil}
View Source
var Service = generator.Generator{ "service-scala", "Scala Service", "Generate Scala service source code", []generator.GeneratorArg{ {Arg: generator.ArgSpecFile, Required: true}, {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 GeneratePlayService(specification, params[generator.ArgSwaggerPath], params[generator.ArgGeneratePath], params[generator.ArgServicesPath]) }, }
Functions ¶
func GenerateCirceModels ¶
func GeneratePlayService ¶
func GenerateSttpClient ¶
func JoinParams ¶
func NewScalaWriter ¶
func PlainScalaType ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.