Skip to content

Commit

Permalink
minor(cb2-10521): change adr brake endurance weight unit of measureme…
Browse files Browse the repository at this point in the history
…nt to tonnes on a technical record (#162)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
owen-corrigan and github-actions[bot] authored Jan 26, 2024
1 parent 6217877 commit ec8585e
Show file tree
Hide file tree
Showing 27 changed files with 44 additions and 44 deletions.
4 changes: 2 additions & 2 deletions json-definitions/v3/tech-record/get/hgv/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-definitions/v3/tech-record/get/hgv/skeleton/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -206,10 +206,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-definitions/v3/tech-record/get/hgv/testable/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-definitions/v3/tech-record/get/lgv/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-definitions/v3/tech-record/get/lgv/skeleton/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-definitions/v3/tech-record/get/trl/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-definitions/v3/tech-record/get/trl/skeleton/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-definitions/v3/tech-record/get/trl/testable/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-schemas/v3/tech-record/get/hgv/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-schemas/v3/tech-record/get/hgv/skeleton/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-schemas/v3/tech-record/get/hgv/testable/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-schemas/v3/tech-record/get/lgv/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-schemas/v3/tech-record/get/lgv/skeleton/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-schemas/v3/tech-record/get/trl/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-schemas/v3/tech-record/get/trl/skeleton/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions json-schemas/v3/tech-record/get/trl/testable/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@
},
"techRecord_adrDetails_weight": {
"type": [
"string",
"number",
"null"
],
"maxLength": 8
"maximum": 99999999
},
"techRecord_adrDetails_declarationsSeen": {
"type": [
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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": "5.0.0",
"version": "5.1.0",
"description": "type definitions for cvs vta and vtm applications",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion tests/hgv/skeleton.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe("validate ADR hgv schema", () => {
it("should pass if techRecord_adrDetails_brakeEndurance is true and weight is present", () => {
const data = hgvData[7];
(data as any).techRecord_adrDetails_brakeEndurance = true;
(data as any).techRecord_adrDetails_weight = "123";
(data as any).techRecord_adrDetails_weight = 123;
const res = isValidObject(schemaName, data);
expect(res).toEqual(true);
});
Expand Down
2 changes: 1 addition & 1 deletion types/v3/tech-record/get/hgv/complete/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export interface TechRecordGETHGVComplete {
techRecord_adrDetails_brakeDeclarationsSeen?: boolean | null;
techRecord_adrDetails_brakeDeclarationIssuer?: string | null;
techRecord_adrDetails_brakeEndurance?: boolean | null;
techRecord_adrDetails_weight?: string | null;
techRecord_adrDetails_weight?: number | null;
techRecord_adrDetails_declarationsSeen?: boolean | null;
techRecord_adrDetails_additionalNotes_guidanceNotes?: string[] | null;
techRecord_adrDetails_additionalNotes_number?: string[] | null;
Expand Down
2 changes: 1 addition & 1 deletion types/v3/tech-record/get/hgv/skeleton/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export interface TechRecordGETHGVSkeleton {
techRecord_adrDetails_brakeDeclarationsSeen?: boolean | null;
techRecord_adrDetails_brakeDeclarationIssuer?: string | null;
techRecord_adrDetails_brakeEndurance?: boolean | null;
techRecord_adrDetails_weight?: string | null;
techRecord_adrDetails_weight?: number | null;
techRecord_adrDetails_declarationsSeen?: boolean | null;
techRecord_adrDetails_additionalNotes_guidanceNotes?: string[] | null;
techRecord_adrDetails_additionalNotes_number?: string[] | null;
Expand Down
2 changes: 1 addition & 1 deletion types/v3/tech-record/get/hgv/testable/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export interface TechRecordGETHGVTestable {
techRecord_adrDetails_brakeDeclarationsSeen?: boolean | null;
techRecord_adrDetails_brakeDeclarationIssuer?: string | null;
techRecord_adrDetails_brakeEndurance?: boolean | null;
techRecord_adrDetails_weight?: string | null;
techRecord_adrDetails_weight?: number | null;
techRecord_adrDetails_declarationsSeen?: boolean | null;
techRecord_adrDetails_additionalNotes_guidanceNotes?: string[] | null;
techRecord_adrDetails_additionalNotes_number?: string[] | null;
Expand Down
2 changes: 1 addition & 1 deletion types/v3/tech-record/get/lgv/complete/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface TechRecordGETLGVComplete {
techRecord_adrDetails_brakeDeclarationsSeen?: boolean | null;
techRecord_adrDetails_brakeDeclarationIssuer?: string | null;
techRecord_adrDetails_brakeEndurance?: boolean | null;
techRecord_adrDetails_weight?: string | null;
techRecord_adrDetails_weight?: number | null;
techRecord_adrDetails_declarationsSeen?: boolean | null;
techRecord_adrDetails_additionalNotes_guidanceNotes?: string[] | null;
techRecord_adrDetails_additionalNotes_number?: string[] | null;
Expand Down
2 changes: 1 addition & 1 deletion types/v3/tech-record/get/lgv/skeleton/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface TechRecordGETLGVSkeleton {
techRecord_adrDetails_brakeDeclarationsSeen?: boolean | null;
techRecord_adrDetails_brakeDeclarationIssuer?: string | null;
techRecord_adrDetails_brakeEndurance?: boolean | null;
techRecord_adrDetails_weight?: string | null;
techRecord_adrDetails_weight?: number | null;
techRecord_adrDetails_declarationsSeen?: boolean | null;
techRecord_adrDetails_additionalNotes_guidanceNotes?: string[] | null;
techRecord_adrDetails_additionalNotes_number?: string[] | null;
Expand Down
2 changes: 1 addition & 1 deletion types/v3/tech-record/get/trl/complete/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface TechRecordGETTRLComplete {
techRecord_adrDetails_brakeDeclarationsSeen?: boolean | null;
techRecord_adrDetails_brakeDeclarationIssuer?: string | null;
techRecord_adrDetails_brakeEndurance?: boolean | null;
techRecord_adrDetails_weight?: string | null;
techRecord_adrDetails_weight?: number | null;
techRecord_adrDetails_declarationsSeen?: boolean | null;
techRecord_adrDetails_additionalNotes_guidanceNotes?: string[] | null;
techRecord_adrDetails_additionalNotes_number?: string[] | null;
Expand Down
2 changes: 1 addition & 1 deletion types/v3/tech-record/get/trl/skeleton/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface TechRecordGETTRLSkeleton {
techRecord_adrDetails_brakeDeclarationsSeen?: boolean | null;
techRecord_adrDetails_brakeDeclarationIssuer?: string | null;
techRecord_adrDetails_brakeEndurance?: boolean | null;
techRecord_adrDetails_weight?: string | null;
techRecord_adrDetails_weight?: number | null;
techRecord_adrDetails_declarationsSeen?: boolean | null;
techRecord_adrDetails_additionalNotes_guidanceNotes?: string[] | null;
techRecord_adrDetails_additionalNotes_number?: string[] | null;
Expand Down
2 changes: 1 addition & 1 deletion types/v3/tech-record/get/trl/testable/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export interface TechRecordGETTRLTestable {
techRecord_adrDetails_brakeDeclarationsSeen?: boolean | null;
techRecord_adrDetails_brakeDeclarationIssuer?: string | null;
techRecord_adrDetails_brakeEndurance?: boolean | null;
techRecord_adrDetails_weight?: string | null;
techRecord_adrDetails_weight?: number | null;
techRecord_adrDetails_declarationsSeen?: boolean | null;
techRecord_adrDetails_additionalNotes_guidanceNotes?: string[] | null;
techRecord_adrDetails_additionalNotes_number?: string[] | null;
Expand Down

0 comments on commit ec8585e

Please sign in to comment.