Skip to content

Commit

Permalink
none Fixes the Optional comments
Browse files Browse the repository at this point in the history
  • Loading branch information
totopoloco committed May 27, 2024
1 parent dd626a2 commit 2362ef8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,25 @@

import at.mavila.hours.ranges.model.Hours;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import com.networknt.schema.JsonSchema;
import com.networknt.schema.ValidationMessage;
import java.util.Set;
import java.util.stream.Collectors;
import lombok.AllArgsConstructor;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Set;
import java.util.stream.Collectors;

@Service
@AllArgsConstructor(onConstructor_ = @Autowired)
public class ValidatorService {
private static final ThreadLocal<ObjectMapper> OBJECT_MAPPER = ThreadLocal.withInitial(() -> {
final ObjectMapper objectMapper = new ObjectMapper();
final JavaTimeModule javaTimeModule = new JavaTimeModule();
objectMapper.registerModule(javaTimeModule);
objectMapper.registerModule(new JavaTimeModule());
objectMapper.registerModule(new Jdk8Module());
return objectMapper;
});
private final JsonSchema jsonSchema;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/static/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ servers:
info:
title: Hours API
description: This API provides endpoints for managing hours
version: "0a478e6"
version: "dd626a2"
contact:
name: Marco T. Ávila Cerón
email: [email protected]
Expand Down

0 comments on commit 2362ef8

Please sign in to comment.