Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Client = generator.Generator{ "client-java", "Java Client", "Generate Java client source code", []generator.GeneratorArg{ {Arg: generator.ArgSpecFile, Required: true}, {Arg: generator.ArgJsonlib, Required: true, Values: JsonlibJavaValues}, {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 JsonlibJavaValues = []string{"jackson", "moshi"}
View Source
var Models = generator.Generator{ "models-java", "Java Models", "Generate Java models source code", []generator.GeneratorArg{ {Arg: generator.ArgSpecFile, Required: true}, {Arg: generator.ArgJsonlib, Required: true, Values: JsonlibJavaValues}, {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 ServerJavaValues = []string{"spring", "micronaut"}
View Source
var Service = generator.Generator{ "service-java", "Java Service", "Generate Java service source code", []generator.GeneratorArg{ {Arg: generator.ArgSpecFile, Required: true}, {Arg: generator.ArgJsonlib, Required: true, Values: JsonlibJavaValues}, {Arg: generator.ArgServer, Required: true, Values: ServerJavaValues}, {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.
Click to show internal directories.
Click to hide internal directories.