We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 57e7699 + 45090d4 commit d6ea0e0Copy full SHA for d6ea0e0
src/main/java/com/es/boardGameTraining/service/GameService.java
@@ -127,6 +127,10 @@ public GameDTO createGameWithId(String id) {
127
throw new NumberFormatException("Id must be a number: " + e.getMessage());
128
}
129
130
+ if (idParsed <= 0) {
131
+ throw new BadRequestException("Id must be positive");
132
+ }
133
+
134
URI uri = UriComponentsBuilder.newInstance().scheme(serviceScheme).host(serviceHost).port(servicePort).path("/details")
135
.queryParam("id", id).build().toUri();
136
0 commit comments