you can add type ="string" in you Schema like this @Schema(type = "string", example = "17-02-2020") private LocalDate dateValue