Group Validation

This commit is contained in:
uPagge 2021-03-22 20:07:20 +03:00
parent 51f315189a
commit d1eaecd89b
No known key found for this signature in database
GPG Key ID: 964B40928E4C9088

View File

@ -1,5 +1,6 @@
package org.sadtech.example.springvalidation.controller; 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.dto.PersonDto;
import org.sadtech.example.springvalidation.valid.Marker; import org.sadtech.example.springvalidation.valid.Marker;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
@ -11,11 +12,11 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import javax.validation.Valid; import javax.validation.Valid;
import javax.validation.groups.Default;
@Validated @Validated
@RestController @RestController
@RequestMapping("/api/group-valid/person") @RequestMapping("/api/group-valid/person")
@Tag(name = "Группы валидаций")
public class PersonControllerGroupValid { public class PersonControllerGroupValid {
@PostMapping @PostMapping