-
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 #6 from FINTmodels/feature-problems
Add Problem type to event response.
- Loading branch information
Showing
6 changed files
with
143 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package no.fint.event.model; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
public class Problem { | ||
/** | ||
* The name of the field the problem relates to. Either a simple name or a JSON Path to the field. | ||
*/ | ||
private String field; | ||
/** | ||
* Human understandable message describing the problem. | ||
*/ | ||
private String message; | ||
/** | ||
* Machine traceable error code indicating the type of problem. | ||
*/ | ||
private String code; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"corrId": "a91cdb9b-0292-4baf-9a27-578642634129", | ||
"action": "GET_ALL", | ||
"status": "NEW", | ||
"time": 1524131147134, | ||
"orgId": "rogfk.no", | ||
"source": "fk", | ||
"client": "myClient", | ||
"data": [], | ||
"message": "There is a disturbance in the Force", | ||
"query": "what", | ||
"problems": [ | ||
{ | ||
"field": "monkey", | ||
"message": "Only chimpanzees allowed", | ||
"code": "9999" | ||
}, | ||
{ | ||
"field": "jedi", | ||
"message": "Luke not found", | ||
"code": "44" | ||
} | ||
], | ||
"statusCode": "JEDI-XX", | ||
"responseStatus": "ERROR" | ||
} |