OpenAPI generator - 400 Bad Request with body "data" if body is null #168
Labels
bug
Something isn't working
lang: java
Related for Java language
module: http-server
Related to module - http-server
I generated POST method from openapi and if I try to send a request with body "null" I get the following response:
I've already investigated and figured out that such strange answer is caused by NPE in
ru.tinkoff.kora.json.module.http.server.JsonReaderHttpServerRequestMapper<T>:22
:Text "data" came from
HandleFuseableConditionalSubscriber#next
:I'd be mush more better to allow
null
body and maybe even to generate validation messages similar to messages fromJsonReader
The text was updated successfully, but these errors were encountered: