Skip to content

Commit

Permalink
remove required status from nullable fields in json schema (#696)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeclanClarkeCGI authored Jan 10, 2025
1 parent 5035b87 commit 182d633
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ void testPostDraftAccount_trap400Response() throws Exception {

String expectedErrorMessageStart =
"JSON Schema Validation Error: Validating against JSON schema 'addDraftAccountRequest.json',"
+ " found 16 validation errors:";
+ " found 14 validation errors:";

when(userStateService.checkForAuthorisedUser(any())).thenReturn(allPermissionsUser());

Expand Down
3 changes: 0 additions & 3 deletions src/main/resources/jsonSchemas/account.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
"originator_name",
"originator_id",
"enforcement_court_id",
"collection_order_made",
"collection_order_made_today",
"payment_card_request",
"account_sentence_date",
"defendant",
Expand Down Expand Up @@ -209,7 +207,6 @@
},
"debtor_detail": {
"type": ["object", "null"],
"required": ["document_language", "hearing_language"],
"properties": {
"vehicle_make": {
"type": ["string", "null"],
Expand Down

0 comments on commit 182d633

Please sign in to comment.