Skip to content

Commit

Permalink
feat(cb2-14764): patch for removing nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-cs committed Nov 19, 2024
1 parent d9c59de commit 2421f2b
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 21 deletions.
5 changes: 1 addition & 4 deletions json-definitions/v1/recalls/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"type": "object",
"properties": {
"hasRecall": {
"type": [
"boolean",
"null"
]
"type": "boolean"
},
"manufacturer": {
"type": [
Expand Down
3 changes: 0 additions & 3 deletions json-definitions/v1/test-result/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,6 @@
"anyOf": [
{
"$ref": "../recalls/index.json"
},
{
"type": "null"
}
]
}
Expand Down
5 changes: 1 addition & 4 deletions json-schemas/v1/recalls/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
"type": "object",
"properties": {
"hasRecall": {
"type": [
"boolean",
"null"
]
"type": "boolean"
},
"manufacturer": {
"type": [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dvsa/cvs-type-definitions",
"version": "7.7.0",
"version": "7.7.1",
"description": "type definitions for cvs vta and vtm applications",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion types/v1/recalls/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
*/

export interface RecallsSchema {
hasRecall: boolean | null;
hasRecall: boolean;
manufacturer: string | null;
}
4 changes: 2 additions & 2 deletions types/v1/test-result/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export interface TestResultSchema {
testHistory?: TestResultSchema[];
testVersion?: string;
deletionFlag?: boolean;
recalls?: RecallsSchema | null;
recalls?: RecallsSchema;
}
export interface VehicleClassSchema {
code: string;
Expand Down Expand Up @@ -205,7 +205,7 @@ export interface BodyTypeSchema {
description?: string | null;
}
export interface RecallsSchema {
hasRecall: boolean | null;
hasRecall: boolean;
manufacturer: string | null;
}

Expand Down
4 changes: 2 additions & 2 deletions types/v1/test/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ export interface TestResultSchema {
testHistory?: TestResultSchema[];
testVersion?: string;
deletionFlag?: boolean;
recalls?: RecallsSchema | null;
recalls?: RecallsSchema;
}
export interface TestTypeSchema {
testTypeName: string | null;
Expand Down Expand Up @@ -422,7 +422,7 @@ export interface BodyTypeSchema {
description?: string | null;
}
export interface RecallsSchema {
hasRecall: boolean | null;
hasRecall: boolean;
manufacturer: string | null;
}

Expand Down
4 changes: 2 additions & 2 deletions types/v1/vehicle/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ export interface TestResultSchema {
testHistory?: TestResultSchema[];
testVersion?: string;
deletionFlag?: boolean;
recalls?: RecallsSchema | null;
recalls?: RecallsSchema;
}
export interface TestTypeSchema {
testTypeName: string | null;
Expand Down Expand Up @@ -414,7 +414,7 @@ export interface BodyTypeSchema {
description?: string | null;
}
export interface RecallsSchema {
hasRecall: boolean | null;
hasRecall: boolean;
manufacturer: string | null;
}

Expand Down
4 changes: 2 additions & 2 deletions types/v1/visit/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export interface TestResultSchema {
testHistory?: TestResultSchema[];
testVersion?: string;
deletionFlag?: boolean;
recalls?: RecallsSchema | null;
recalls?: RecallsSchema;
}
export interface TestTypeSchema {
testTypeName: string | null;
Expand Down Expand Up @@ -435,7 +435,7 @@ export interface BodyTypeSchema {
description?: string | null;
}
export interface RecallsSchema {
hasRecall: boolean | null;
hasRecall: boolean;
manufacturer: string | null;
}

Expand Down

0 comments on commit 2421f2b

Please sign in to comment.