Skip to content

Commit

Permalink
Increase question formattedBody to 2047
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4mpy committed Mar 21, 2024
1 parent 421d768 commit fabfca2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public Question(Question other) {
@Column
private String label;

@Column
@Column(length = 2047)
private String formattedBody;

@Column(nullable = false, updatable = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public ResponseEntity<ValidationProblemDetail> handleConstraintViolation(Constra
@ExceptionHandler(DataIntegrityViolationException.class)
@ApiResponse(responseCode = "422", content = { @Content(schema = @Schema(implementation = ProblemDetail.class)) })
public ResponseEntity<ProblemDetail> handleDataIntegrityViolation(DataIntegrityViolationException ex) {
final var detail = new ValidationProblemDetail(ex.getMessage(), Map.of());
final var detail = ProblemDetail.forStatusAndDetail(HttpStatus.UNPROCESSABLE_ENTITY, ex.getMessage());
return ResponseEntity.status(detail.getStatus()).body(detail);
}

Expand Down

0 comments on commit fabfca2

Please sign in to comment.