Config Options for scala-lagom-server
| Option | Description | Values | Default |
|---|---|---|---|
| sortParamsByRequiredFlag | Sort method arguments to place required parameters before optional parameters. | true | |
| sortModelPropertiesByRequiredFlag | Sort model properties to place required parameters before optional parameters. | true | |
| ensureUniqueParams | Whether to ensure parameter names are unique in an operation (rename parameters that are not). | true | |
| allowUnicodeIdentifiers | boolean, toggles whether unicode identifiers are allowed in names or not, default is false | false | |
| prependFormOrBodyParameters | Add form or body parameters to the beginning of the parameter list. | false | |
| modelPackage | package for generated models | null | |
| apiPackage | package for generated api classes | null | |
| sourceFolder | source folder for generated code | null | |
| modelPropertyNaming | Naming convention for the property: 'camelCase', 'PascalCase', 'snake_case' and 'original', which keeps the original name | camelCase |
IMPORT MAPPING
| Type/Alias | Imports |
|---|---|
| LocalDateTime | org.joda.time.* |
| LocalTime | org.joda.time.* |
| HashMap | java.util.HashMap |
| ListBuffer | scala.collection.mutable.ListBuffer |
| ArrayList | java.util.ArrayList |
| URI | java.net.URI |
| Timestamp | java.sql.Timestamp |
| LocalDate | org.joda.time.* |
| BigDecimal | java.math.BigDecimal |
| Date | java.util.Date |
| DateTime | org.joda.time.DateTime |
| Array | java.util.List |
| ListSet | scala.collection.immutable.ListSet |
| UUID | java.util.UUID |
| File | java.io.File |
| Seq | scala.collection.immutable.Seq |
INSTANTIATION TYPES
| Type/Alias | Instantiated By |
|---|---|
| set | Set |
| array | ListBuffer |
| map | HashMap |
LANGUAGE PRIMITIVES
- String
- Double
- Any
- Int
- Array
- Float
- boolean
- Long
- Object
- List
- Boolean
- Map
- Seq
RESERVED WORDS
- def
- basepath
- queryparams
- do
- type
- while
- path
- protected
- else
- trait
- catch
- forsome
- if
- case
- contenttypes
- val
- new
- mp
- package
- sealed
- var
- finally
- this
- formparams
- headerparams
- extends
- null
- final
- true
- try
- object
- implicit
- private
- import
- lazy
- for
- apiinvoker
- yield
- override
- class
- postbody
- false
- match
- abstract
- contenttype
- super
- with
- throw
- return