package com.doomspork.helloworld

import io.dropwizard.Configuration
import org.hibernate.validator.constraints.NotEmpty
import com.fasterxml.jackson.annotation.JsonProperty

data class HelloWorldConfiguration(JsonProperty NotEmpty var template: String,
                                   JsonProperty NotEmpty var defaultName: String = "Stranger") : Configuration()

package com.doomspork.helloworld

import io.dropwizard.Configuration
import org.hibernate.validator.constraints.NotEmpty
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.annotation.JsonCreator

data class HelloWorldConfiguration [JsonCreator] (JsonProperty("template") NotEmpty var template: String = "",
                                   JsonProperty("defaultName") NotEmpty var defaultName: String = "Stranger") : Configuration()

Update jackson annotations to support multi-arg constructor
Update jackson annotations to support multi-arg constructor

doomspork/kotlin-dropwizard