This specified additional options that can be specified when using Movio’s scala generators
Interfaces: None
Additional validation options not currently in the standard apidoc spec
Field | Type | Required? | Default | Description |
---|---|---|---|---|
regex | string | No | - | Regex string to validate the field with. The field must be a
Example: ^[A-Za-z]+$ |
maximum | long | No | - | This applies only to
|
minimum | long | No | - | This applies only to
|
Interfaces: None
Information needed for generating Kafka wrappers, consumers and producers.
Field | Type | Required? | Default | Description |
---|---|---|---|---|
data_type | string | Yes | - | This is the name of the model that this kafka wrapper encapsulated. Model name is the same as defined in the models section
Example: person_address |
topic | string | Yes | - | [scala] This is a scala snippet that returns a string with the topic name for kafka. The generator creates a function on the kafka topic object
|
message_generate_key | string | Yes | java.util.UUID.randomUUID().toString | [scala] This is a scala snippet that creates a string used as the message ID. The message ID is used as the kafka message ID. The generator creates a function on the case class
|
Interfaces: None
Additional code generation information for case class fields
Field | Type | Required? | Default | Description |
---|---|---|---|---|
class | string | No | - | The fully qualified Scala/Java class to use during implementation. Note that this class must have a json formatter defined in the generator code. Currenly only org.joda.time.LocalDate and org.joda.time.LocalDateTime are implemented. In the future this maybe a defined list of supported classes
Example: org.joda.time.LocalDate |
default | string | No | - | Used as the default in a case class.
|
example | string | No | - | Used in documentation and as a default implementation when creating example implementation’s of case classes
|
Interfaces: None
Additional code generation information for case classes
Field | Type | Required? | Default | Description |
---|---|---|---|---|
extends | [string] | No | - | A list of Scala/Java classes that this model extends
Example: [com.github.BaseClass1, com.github.BaseClass2] |