It's a simple Spring Boot Web app with the following controller:
@RestController
@RequestMapping(value = ["/v1/inputs", "/inputs"])
class InputsController(val apiValidator: OpenApiValidator) {
@PostMapping(consumes = [MediaType.APPLICATION_JSON_VALUE])
fun postInputs(
@RequestBody
body: String,
): ResponseEntity<Any>
val requestEntity = RequestEntity()
requestEntity.requestBody = body
val validation = apiValidator.validateRequestPath("/inputs", "post", requestEntity)
return ResponseEntity.ok("OK")
}
}
Following the thread of execution I found the call and the error is pretty clear in my IDE:
I'm happy to provide a PR to fix this, but I was wondering what you wanted the behaviour to be? It feels to me like we could just add something onto the configuration for the OpenApiValidator so people could override the behaviour if they wanted to but then just set a sensible default.
I am trying to set this up in a project running the following versions of dependencies:
It's a simple Spring Boot Web app with the following controller:
Following the thread of execution I found the call and the error is pretty clear in my IDE:
I'm happy to provide a PR to fix this, but I was wondering what you wanted the behaviour to be? It feels to me like we could just add something onto the configuration for the OpenApiValidator so people could override the behaviour if they wanted to but then just set a sensible default.
What do you think?