From 2f8aa368feb889aefc860361bb0edec3673fd611 Mon Sep 17 00:00:00 2001 From: Diego Castro Date: Fri, 24 May 2019 04:41:17 -0300 Subject: [PATCH] Fix code example for validation on functional endpoints Closes gh-23020 --- src/docs/asciidoc/web/webflux-functional.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/asciidoc/web/webflux-functional.adoc b/src/docs/asciidoc/web/webflux-functional.adoc index 497dc636075..c452c6df81e 100644 --- a/src/docs/asciidoc/web/webflux-functional.adoc +++ b/src/docs/asciidoc/web/webflux-functional.adoc @@ -253,8 +253,8 @@ public class PersonHandler { } private void validate(Person person) { - Errors errors = new BeanPropertyBindingResult(body, "person"); - validator.validate(body, errors); + Errors errors = new BeanPropertyBindingResult(person, "person"); + validator.validate(person, errors); if (errors.hasErrors) { throw new ServerWebInputException(errors.toString()); <3> }