Shawn A
06/22/2020, 10:55 PM@GetMapping("/api/users")
fun getAll(user: User) = Mono.just(user)
-- snip --
data class User(
    val firstName: String,
    val address: Address
)
data class Address(
    val street: String
)curl '<http://localhost:8080/api/users?firstName=shawn&address.street=foo>'org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.expediagroup.application.User]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Parameter specified as non-null is null: method com.expediagroup.application.User.<init>, parameter addressthanksforallthefish
06/23/2020, 6:29 AMdata class User(
    val firstName: String,
    val address: Address = Address("")
)Shawn A
06/23/2020, 8:09 PMWesley Acheson
06/24/2020, 5:20 PMWesley Acheson
06/24/2020, 5:22 PMShawn A
06/24/2020, 11:31 PM