alightgoesout
05/04/2022, 3:39 PMreturning(Status, Pair<Lens<T>, T>)
), I get an exception when one of the fields is null
in the example (NoFieldFound
).
It looks like a bug in SimpleLookup
, where the field retriever does not distinguish between "the java getter is null" and "the value of the field retrieved by the getter is null" (https://github.com/http4k/http4k/blob/bf722f2d8756c8ff3cd680e5d5ac3e124cb0c779/htt[…]rc/main/kotlin/org/http4k/contract/openapi/v3/FieldRetrieval.kt)