Config Options for scalatra
| 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 |
IMPORT MAPPING
| Type/Alias | Imports |
|---|---|
| LocalDateTime | org.joda.time.LocalDateTime |
| Set | scala.collection.immutable.Set |
| LocalTime | org.joda.time.LocalTime |
| 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.LocalDate |
| 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 |
| Map | java.util.Map |
INSTANTIATION TYPES
| Type/Alias | Instantiated By |
|---|---|
| set | Set |
| map | HashMap |
LANGUAGE PRIMITIVES
- String
- Double
- Any
- Int
- Array
- Float
- boolean
- Long
- Object
- List
- Boolean
- Map
- Seq
RESERVED WORDS
- synchronized
- do
- float
- while
- type
- protected
- continue
- else
- catch
- if
- case
- new
- package
- static
- void
- double
- byte
- finally
- this
- strictfp
- throws
- enum
- extends
- transient
- final
- try
- implements
- private
- import
- const
- for
- interface
- long
- switch
- default
- goto
- public
- native
- assert
- class
- break
- volatile
- abstract
- int
- instanceof
- super
- boolean
- throw
- char
- short
- return