rrader
09/19/2018, 8:25 AMclass Foo(val baz: String, val bar: Int)
if request will be with null {"baz": null, "bar": null}
it will fail on first parameter, but on response the client want all possible errors at once
What do you think about to put these classes in separate module and disable Kotlin intrinsics
kotlinc -Xno-call-assertions -Xno-param-assertions
In this case constructor will not throw exception, and validation will be done usign @NotNull annotation?