Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 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 @@ -15,8 +15,6 @@
"techRecord_couplingType",
"techRecord_dimensions_length",
"techRecord_dimensions_width",
"techRecord_frontAxleToRearAxle",
"techRecord_rearAxleToRearTrl",
"techRecord_couplingCenterToRearAxleMin",
"techRecord_couplingCenterToRearAxleMax",
"techRecord_couplingCenterToRearTrlMax",
Expand Down Expand Up @@ -1436,6 +1434,23 @@
"techRecord_adrDetails_weight"
]
}
},
{
"if": {
"properties": {
"techRecord_axles": {
"type": "array",
"minItems": 2
}
},
"required": ["techRecord_axles"]
},
"then": {
"required": [
"techRecord_frontAxleToRearAxle",
"techRecord_rearAxleToRearTrl"
]
}
}
]
}
Expand Down
19 changes: 17 additions & 2 deletions json-definitions/v3/tech-record/put/trl/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"techRecord_couplingType",
"techRecord_dimensions_length",
"techRecord_dimensions_width",
"techRecord_frontAxleToRearAxle",
"techRecord_rearAxleToRearTrl",
"techRecord_couplingCenterToRearAxleMin",
"techRecord_couplingCenterToRearAxleMax",
"techRecord_couplingCenterToRearTrlMax",
Expand Down Expand Up @@ -1384,6 +1382,23 @@
"techRecord_adrDetails_weight"
]
}
},
{
"if": {
"properties": {
"techRecord_axles": {
"type": "array",
"minItems": 2
}
},
"required": ["techRecord_axles"]
},
"then": {
"required": [
"techRecord_frontAxleToRearAxle",
"techRecord_rearAxleToRearTrl"
]
}
}
]
}
Expand Down
21 changes: 19 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 @@ -15,8 +15,6 @@
"techRecord_couplingType",
"techRecord_dimensions_length",
"techRecord_dimensions_width",
"techRecord_frontAxleToRearAxle",
"techRecord_rearAxleToRearTrl",
"techRecord_couplingCenterToRearAxleMin",
"techRecord_couplingCenterToRearAxleMax",
"techRecord_couplingCenterToRearTrlMax",
Expand Down Expand Up @@ -1722,6 +1720,25 @@
"techRecord_adrDetails_weight"
]
}
},
{
"if": {
"properties": {
"techRecord_axles": {
"type": "array",
"minItems": 2
}
},
"required": [
"techRecord_axles"
]
},
"then": {
"required": [
"techRecord_frontAxleToRearAxle",
"techRecord_rearAxleToRearTrl"
]
}
}
]
}
Expand Down
21 changes: 19 additions & 2 deletions json-schemas/v3/tech-record/put/trl/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
"techRecord_couplingType",
"techRecord_dimensions_length",
"techRecord_dimensions_width",
"techRecord_frontAxleToRearAxle",
"techRecord_rearAxleToRearTrl",
"techRecord_couplingCenterToRearAxleMin",
"techRecord_couplingCenterToRearAxleMax",
"techRecord_couplingCenterToRearTrlMax",
Expand Down Expand Up @@ -1670,6 +1668,25 @@
"techRecord_adrDetails_weight"
]
}
},
{
"if": {
"properties": {
"techRecord_axles": {
"type": "array",
"minItems": 2
}
},
"required": [
"techRecord_axles"
]
},
"then": {
"required": [
"techRecord_frontAxleToRearAxle",
"techRecord_rearAxleToRearTrl"
]
}
}
]
}
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": "12.6.0",
"version": "12.7.0",
"description": "Type definitions for CVS VTA and VTM applications",
"main": "index.js",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions types/v3/tech-record/get/trl/complete/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ export interface TechRecordGETTRLComplete {
techRecord_euVehicleCategory: EUVehicleCategory;
techRecord_firstUseDate: string;
techRecord_frameDescription?: FrameDescription | null;
techRecord_frontAxleToRearAxle: number;
techRecord_frontAxleToRearAxle?: number;
techRecord_functionCode?: string | null;
techRecord_grossDesignWeight?: number | null;
techRecord_grossEecWeight?: number | null;
Expand Down Expand Up @@ -245,7 +245,7 @@ export interface TechRecordGETTRLComplete {
techRecord_lastUpdatedAt?: string | null;
techRecord_lastUpdatedByName?: string | null;
techRecord_lastUpdatedById?: string | null;
techRecord_rearAxleToRearTrl: number;
techRecord_rearAxleToRearTrl?: number;
techRecord_reasonForCreation: string;
techRecord_recordCompleteness?: "complete";
techRecord_regnDate?: string | null;
Expand Down
4 changes: 2 additions & 2 deletions types/v3/tech-record/put/trl/complete/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export interface TechRecordPUTTRLComplete {
techRecord_euVehicleCategory: EUVehicleCategory;
techRecord_firstUseDate: string;
techRecord_frameDescription?: FrameDescription | null;
techRecord_frontAxleToRearAxle: number;
techRecord_frontAxleToRearAxle?: number;
techRecord_functionCode?: string | null;
techRecord_grossDesignWeight?: number | null;
techRecord_grossEecWeight?: number | null;
Expand Down Expand Up @@ -236,7 +236,7 @@ export interface TechRecordPUTTRLComplete {
techRecord_manufacturerDetails_postTown?: string | null;
techRecord_manufacturerDetails_manufacturerNotes?: string | null;
techRecord_manufacturerDetails_telephoneNumber?: string | null;
techRecord_rearAxleToRearTrl: number;
techRecord_rearAxleToRearTrl?: number;
techRecord_reasonForCreation: string;
techRecord_regnDate?: string | null;
techRecord_roadFriendly: boolean;
Expand Down
Loading