Skip to content

Commit

Permalink
bump validation
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonyLeons committed Jan 5, 2024
1 parent 4ea4c1b commit de0756a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>dev.leons</groupId>
<artifactId>ward</artifactId>
<version>2.4.0</version>
<version>2.4.1</version>
<packaging>jar</packaging>

<!-- parent pom -->
Expand Down Expand Up @@ -40,9 +40,9 @@
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
<groupId>jakarta.validation</groupId>
<artifactId>jakarta.validation-api</artifactId>
<version>3.0.2</version>
</dependency>
<dependency>
<groupId>com.github.oshi</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import jakarta.validation.Valid;
import java.io.IOException;

/**
Expand Down
16 changes: 7 additions & 9 deletions src/main/java/dev/leons/ward/dto/SetupDto.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package dev.leons.ward.dto;

import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
* SetupDto is a values container for setup data
*
Expand All @@ -24,8 +23,7 @@ public class SetupDto
* Server name Field
*/
@NotNull
@NotEmpty
@Size(min = 1, max = 10)
@Size(min = 0, max = 10)
private String serverName;

/**
Expand Down

0 comments on commit de0756a

Please sign in to comment.