From d1eaecd89bb60722baf04e69a4b70e5280cb7653 Mon Sep 17 00:00:00 2001 From: uPagge Date: Mon, 22 Mar 2021 20:07:20 +0300 Subject: [PATCH] Group Validation --- .../controller/PersonControllerGroupValid.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/sadtech/example/springvalidation/controller/PersonControllerGroupValid.java b/src/main/java/org/sadtech/example/springvalidation/controller/PersonControllerGroupValid.java index 12b2256..0c7bcd3 100644 --- a/src/main/java/org/sadtech/example/springvalidation/controller/PersonControllerGroupValid.java +++ b/src/main/java/org/sadtech/example/springvalidation/controller/PersonControllerGroupValid.java @@ -1,5 +1,6 @@ package org.sadtech.example.springvalidation.controller; +import io.swagger.v3.oas.annotations.tags.Tag; import org.sadtech.example.springvalidation.dto.PersonDto; import org.sadtech.example.springvalidation.valid.Marker; import org.springframework.http.ResponseEntity; @@ -11,11 +12,11 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.validation.Valid; -import javax.validation.groups.Default; @Validated @RestController @RequestMapping("/api/group-valid/person") +@Tag(name = "Группы валидаций") public class PersonControllerGroupValid { @PostMapping