This repository has been archived by the owner on May 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TP-960: Surfacing the file name and location responsible for breaking…
… the POJO generation process
- Loading branch information
Mahesh Subramanian
committed
Feb 15, 2019
1 parent
4b1ea24
commit 6b9513f
Showing
4 changed files
with
76 additions
and
10 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
9 changes: 9 additions & 0 deletions
9
...-core/src/main/java/uk/gov/justice/schema/catalog/exception/InvalidJsonFileException.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package uk.gov.justice.schema.catalog.exception; | ||
|
||
public class InvalidJsonFileException extends RuntimeException { | ||
|
||
public InvalidJsonFileException(final String errorMessage, final Throwable cause) { | ||
super(errorMessage, cause); | ||
} | ||
|
||
} |
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
21 changes: 21 additions & 0 deletions
21
...g-core/src/test/resources/json/dodgy-schemas/incomplete-schema-missing-closing-brace.json
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,21 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"type": "object", | ||
"id": "http://justice.gov.uk/context/person.json", | ||
"properties": { | ||
"nino": { | ||
"type": "string" | ||
}, | ||
"name": { | ||
"type": "string" | ||
}, | ||
"correspondence_address": | ||
{"$ref" : "http://justice.gov.uk/standards/complex_address.json#/definitions/complex_address2"} | ||
|
||
}, | ||
"required": [ | ||
"nino", | ||
"name", | ||
"correspondence_address" | ||
] | ||
|