Skip to content

Commit

Permalink
patch(cb2-9864): adr tank details part 3 (#151)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
owen-corrigan-bjss and github-actions[bot] authored Dec 6, 2023
1 parent ed96656 commit 604a7cf
Show file tree
Hide file tree
Showing 54 changed files with 1,098 additions and 380 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"title": "TC3 Types",
"type": "string",
"tsEnumNames": [
"INTERMEDIATE",
"PERIODIC",
"EXCEPTIONAL"
],
"enum": [
"intermediate",
"periodic",
Expand Down
38 changes: 27 additions & 11 deletions json-definitions/v3/tech-record/get/hgv/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,14 @@
]
},
"techRecord_adrDetails_vehicleDetails_approvalDate": {
"type": [
"string",
"null"
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
},
"techRecord_adrDetails_permittedDangerousGoods": {
Expand Down Expand Up @@ -234,7 +239,8 @@
"type": [
"string",
"null"
]
],
"maxLength": 40
},
"techRecord_adrDetails_adrCertificateNotes": {
"type": [
Expand Down Expand Up @@ -303,9 +309,14 @@
"maxLength": 70
},
"techRecord_adrDetails_tank_tankDetails_tc2Details_tc2IntermediateExpiryDate": {
"type": [
"string",
"null"
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
},
"techRecord_adrDetails_tank_tankDetails_tc3Details": {
Expand All @@ -324,7 +335,7 @@
"type": "null"
},
{
"$ref": "../../../enums/tc3Types.ignore.json"
"$ref": "../../../enums/tc3Types.enum.json"
}
]
},
Expand All @@ -336,9 +347,14 @@
"maxLength": 75
},
"tc3PeriodicExpiryDate": {
"type": [
"string",
"null"
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
}
}
Expand Down
42 changes: 29 additions & 13 deletions json-definitions/v3/tech-record/get/hgv/skeleton/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,14 @@
]
},
"techRecord_adrDetails_vehicleDetails_approvalDate": {
"type": [
"string",
"null"
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
},
"techRecord_adrDetails_permittedDangerousGoods": {
Expand Down Expand Up @@ -204,7 +209,8 @@
"type": [
"string",
"null"
]
],
"maxLength": 40
},
"techRecord_adrDetails_adrCertificateNotes": {
"type": [
Expand Down Expand Up @@ -273,9 +279,14 @@
"maxLength": 70
},
"techRecord_adrDetails_tank_tankDetails_tc2Details_tc2IntermediateExpiryDate": {
"type": [
"string",
"null"
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
},
"techRecord_adrDetails_tank_tankDetails_tc3Details": {
Expand All @@ -294,7 +305,7 @@
"type": "null"
},
{
"$ref": "../../../enums/tc3Types.ignore.json"
"$ref": "../../../enums/tc3Types.enum.json"
}
]
},
Expand All @@ -306,9 +317,14 @@
"maxLength": 75
},
"tc3PeriodicExpiryDate": {
"type": [
"string",
"null"
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
}
}
Expand Down Expand Up @@ -929,7 +945,7 @@
"const": "v"
},
"techRecord_vehicleClass_description": {
"const": "heavy goods vehicle"
"const": "heavy goods vehicle"
},
"techRecord_vehicleConfiguration": {
"anyOf": [
Expand Down Expand Up @@ -1019,4 +1035,4 @@
]
}
}
}
}
40 changes: 28 additions & 12 deletions json-definitions/v3/tech-record/get/hgv/testable/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,14 @@
]
},
"techRecord_adrDetails_vehicleDetails_approvalDate": {
"type": [
"string",
"null"
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
},
"techRecord_adrDetails_permittedDangerousGoods": {
Expand Down Expand Up @@ -208,7 +213,8 @@
"type": [
"string",
"null"
]
],
"maxLength": 40
},
"techRecord_adrDetails_adrCertificateNotes": {
"type": [
Expand Down Expand Up @@ -277,9 +283,14 @@
"maxLength": 70
},
"techRecord_adrDetails_tank_tankDetails_tc2Details_tc2IntermediateExpiryDate": {
"type": [
"string",
"null"
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
},
"techRecord_adrDetails_tank_tankDetails_tc3Details": {
Expand All @@ -298,7 +309,7 @@
"type": "null"
},
{
"$ref": "../../../enums/tc3Types.ignore.json"
"$ref": "../../../enums/tc3Types.enum.json"
}
]
},
Expand All @@ -310,9 +321,14 @@
"maxLength": 75
},
"tc3PeriodicExpiryDate": {
"type": [
"string",
"null"
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
}
}
Expand Down Expand Up @@ -1010,4 +1026,4 @@
]
}
}
}
}
40 changes: 28 additions & 12 deletions json-definitions/v3/tech-record/get/lgv/complete/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,14 @@
]
},
"techRecord_adrDetails_vehicleDetails_approvalDate": {
"type": [
"string",
"null"
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
},
"techRecord_adrDetails_permittedDangerousGoods": {
Expand Down Expand Up @@ -239,7 +244,8 @@
"type": [
"string",
"null"
]
],
"maxLength": 40
},
"techRecord_adrDetails_adrCertificateNotes": {
"type": [
Expand Down Expand Up @@ -308,9 +314,14 @@
"maxLength": 70
},
"techRecord_adrDetails_tank_tankDetails_tc2Details_tc2IntermediateExpiryDate": {
"type": [
"string",
"null"
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
},
"techRecord_adrDetails_tank_tankDetails_tc3Details": {
Expand All @@ -329,7 +340,7 @@
"type": "null"
},
{
"$ref": "../../../enums/tc3Types.ignore.json"
"$ref": "../../../enums/tc3Types.enum.json"
}
]
},
Expand All @@ -341,9 +352,14 @@
"maxLength": 75
},
"tc3PeriodicExpiryDate": {
"type": [
"string",
"null"
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
]
}
}
Expand Down Expand Up @@ -517,4 +533,4 @@
}
}
}
}
}
Loading

0 comments on commit 604a7cf

Please sign in to comment.