Skip to content

Commit

Permalink
Null json schema update (#695)
Browse files Browse the repository at this point in the history
* update json schemas, allow optional fields to be null

* update json schemas, allow ALL fields to be null

* update json schemas, allow ALL fields to be null

* update json schemas, allow ALL fields to be null

* update json schemas, allow ALL fields to be null

* update json schemas, allow optional fields to be null

* update json schemas, allow additional nullable fields

* update json schemas, type changes for result_id and originator_id

* update json schemas, type changes for result_id and originator_id
  • Loading branch information
DeclanClarkeCGI authored Jan 9, 2025
1 parent 3bee6c4 commit 5035b87
Show file tree
Hide file tree
Showing 13 changed files with 238 additions and 217 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"account_type": "Fine",
"defendant_type": "DEFENDANT",
"originator_name": "ORIGINATOR_NAME",
"originator_id": "ORIGINATOR_ID",
"originator_id": 1234,
"enforcement_court_id": 101,
"collection_order_made": true,
"collection_order_made_today": false,
Expand All @@ -18,7 +18,7 @@
"offence_id": 1234,
"impositions": [
{
"result_id": 1,
"result_id": "1234",
"amount_imposed": 500.0,
"amount_paid": 200.0
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"account_type": "Fine",
"defendant_type": "Adult",
"originator_name": "Police Force",
"originator_id": "PF12345",
"originator_id": 12345,
"enforcement_court_id": 101,
"collection_order_made": true,
"collection_order_made_today": false,
Expand All @@ -21,7 +21,7 @@
"offence_id": 1234,
"impositions": [
{
"result_id": 1,
"result_id": "1234",
"amount_imposed": 500.0,
"amount_paid": 200.0
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ private static String validCreateRequestBody() {
"account_type": "Fine",
"defendant_type": "Adult",
"originator_name": "Police Force",
"originator_id": "PF12345",
"originator_id": 12345,
"enforcement_court_id": 101,
"collection_order_made": true,
"collection_order_made_today": false,
Expand Down Expand Up @@ -887,7 +887,7 @@ private static String validCreateRequestBody() {
"offence_id": 1234,
"impositions": [
{
"result_id": 1,
"result_id": "1",
"amount_imposed": 500.00,
"amount_paid": 200.00,
"major_creditor_id": 999
Expand Down Expand Up @@ -997,7 +997,7 @@ private final String validAccountJson() {
"account_type": "Fine",
"defendant_type": "Adult",
"originator_name": "Police Force",
"originator_id": "PF12345",
"originator_id": 12345,
"enforcement_court_id": 101,
"collection_order_made": true,
"collection_order_made_today": false,
Expand Down Expand Up @@ -1036,7 +1036,7 @@ private final String validAccountJson() {
"offence_id": 1234,
"impositions": [
{
"result_id": 1,
"result_id": "1",
"amount_imposed": 500.00,
"amount_paid": 200.00,
"major_creditor_id": 999
Expand Down
Loading

0 comments on commit 5035b87

Please sign in to comment.