-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from bcgov/fix/release
ci: fixing ci
- Loading branch information
Showing
8 changed files
with
175 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 17 additions & 10 deletions
27
core/src/main/java/ca/bc/gov/app/dto/ValidationError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
package ca.bc.gov.app.dto; | ||
|
||
import java.io.Serializable; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import io.swagger.v3.oas.annotations.media.Schema; | ||
import lombok.With; | ||
|
||
@Data | ||
@Schema( | ||
description = "Represents a validation error during submission", | ||
title = "ValidationError", | ||
example = """ | ||
{ | ||
"fieldId": "person.name", | ||
"errorMsg": "Name is required" | ||
}""" | ||
) | ||
@With | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class ValidationError implements Serializable { | ||
private String fieldId; | ||
private String errorMsg; | ||
public record ValidationError( | ||
@Schema(description = "The field id that failed validation", example = "person.name") | ||
String fieldId, | ||
@Schema(description = "The error message for that specific field", example = "Name is required") | ||
String errorMsg | ||
) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.