@dvsa/cvs-type-definitions 2.0.16 → 2.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/json-schemas/v1/activity/index.json +62 -62
  2. package/json-schemas/v1/defect-category-reference-data/index.json +440 -440
  3. package/json-schemas/v1/defect-details/index.json +265 -265
  4. package/json-schemas/v1/defect-location/index.json +49 -49
  5. package/json-schemas/v1/reason-item/index.json +17 -17
  6. package/json-schemas/v1/tech-record/index.json +639 -639
  7. package/json-schemas/v1/test/index.json +1843 -1843
  8. package/json-schemas/v1/test-result/index.json +636 -636
  9. package/json-schemas/v1/test-station/index.json +67 -67
  10. package/json-schemas/v1/test-type/index.json +479 -479
  11. package/json-schemas/v1/vehicle/index.json +1804 -1804
  12. package/json-schemas/v1/vehicle-tech-record/index.json +683 -683
  13. package/json-schemas/v1/visit/index.json +1895 -1895
  14. package/json-schemas/v3/tech-record/get/car/complete/index.json +216 -216
  15. package/json-schemas/v3/tech-record/get/car/skeleton/index.json +195 -195
  16. package/json-schemas/v3/tech-record/get/hgv/complete/index.json +1051 -1051
  17. package/json-schemas/v3/tech-record/get/hgv/skeleton/index.json +1124 -1124
  18. package/json-schemas/v3/tech-record/get/hgv/testable/index.json +1119 -1119
  19. package/json-schemas/v3/tech-record/get/lgv/complete/index.json +226 -226
  20. package/json-schemas/v3/tech-record/get/lgv/skeleton/index.json +202 -202
  21. package/json-schemas/v3/tech-record/get/motorcycle/complete/index.json +219 -219
  22. package/json-schemas/v3/tech-record/get/motorcycle/skeleton/index.json +202 -202
  23. package/json-schemas/v3/tech-record/get/psv/complete/index.json +1027 -1027
  24. package/json-schemas/v3/tech-record/get/psv/skeleton/index.json +1120 -1120
  25. package/json-schemas/v3/tech-record/get/psv/testable/index.json +1097 -1097
  26. package/json-schemas/v3/tech-record/get/search/complete/index.json +55 -55
  27. package/json-schemas/v3/tech-record/get/search/skeleton/index.json +55 -55
  28. package/json-schemas/v3/tech-record/get/trl/complete/index.json +1307 -1307
  29. package/json-schemas/v3/tech-record/get/trl/skeleton/index.json +1002 -1002
  30. package/json-schemas/v3/tech-record/get/trl/testable/index.json +1155 -1155
  31. package/json-schemas/v3/tech-record/post/psv/complete/index.json +1024 -1024
  32. package/json-schemas/v3/tech-record/post/psv/skeleton/index.json +1112 -1112
  33. package/json-schemas/v3/tech-record/post/psv/testable/index.json +1092 -1092
  34. package/json-schemas/v3/tech-record/put/car/complete/request/index.json +87 -87
  35. package/json-schemas/v3/tech-record/put/car/complete/response/index.json +237 -237
  36. package/json-schemas/v3/tech-record/put/car/skeleton/request/index.json +64 -64
  37. package/json-schemas/v3/tech-record/put/car/skeleton/response/index.json +216 -216
  38. package/json-schemas/v3/tech-record/put/hgv/complete/index.json +1009 -1009
  39. package/json-schemas/v3/tech-record/put/hgv/skeleton/index.json +1082 -1082
  40. package/json-schemas/v3/tech-record/put/hgv/testable/index.json +1077 -1077
  41. package/json-schemas/v3/tech-record/put/lgv/complete/request/index.json +97 -97
  42. package/json-schemas/v3/tech-record/put/lgv/complete/response/index.json +247 -247
  43. package/json-schemas/v3/tech-record/put/lgv/skeleton/request/index.json +71 -71
  44. package/json-schemas/v3/tech-record/put/lgv/skeleton/response/index.json +223 -223
  45. package/json-schemas/v3/tech-record/put/trl/complete/index.json +1265 -1265
  46. package/json-schemas/v3/tech-record/put/trl/skeleton/index.json +978 -978
  47. package/json-schemas/v3/tech-record/put/trl/testable/index.json +1115 -1115
  48. package/package.json +31 -36
  49. package/README.md +0 -48
  50. package/lib/README.md +0 -48
  51. package/lib/json-schemas/v1/activity/index.json +0 -62
  52. package/lib/json-schemas/v1/defect-category-reference-data/index.json +0 -440
  53. package/lib/json-schemas/v1/defect-details/index.json +0 -265
  54. package/lib/json-schemas/v1/defect-location/index.json +0 -49
  55. package/lib/json-schemas/v1/reason-item/index.json +0 -17
  56. package/lib/json-schemas/v1/tech-record/index.json +0 -639
  57. package/lib/json-schemas/v1/test/index.json +0 -1843
  58. package/lib/json-schemas/v1/test-result/index.json +0 -636
  59. package/lib/json-schemas/v1/test-station/index.json +0 -67
  60. package/lib/json-schemas/v1/test-type/index.json +0 -479
  61. package/lib/json-schemas/v1/vehicle/index.json +0 -1804
  62. package/lib/json-schemas/v1/vehicle-tech-record/index.json +0 -683
  63. package/lib/json-schemas/v1/visit/index.json +0 -1895
  64. package/lib/json-schemas/v3/tech-record/get/car/complete/index.json +0 -216
  65. package/lib/json-schemas/v3/tech-record/get/car/skeleton/index.json +0 -195
  66. package/lib/json-schemas/v3/tech-record/get/hgv/complete/index.json +0 -1051
  67. package/lib/json-schemas/v3/tech-record/get/hgv/skeleton/index.json +0 -1124
  68. package/lib/json-schemas/v3/tech-record/get/hgv/testable/index.json +0 -1119
  69. package/lib/json-schemas/v3/tech-record/get/lgv/complete/index.json +0 -226
  70. package/lib/json-schemas/v3/tech-record/get/lgv/skeleton/index.json +0 -202
  71. package/lib/json-schemas/v3/tech-record/get/motorcycle/complete/index.json +0 -219
  72. package/lib/json-schemas/v3/tech-record/get/motorcycle/skeleton/index.json +0 -202
  73. package/lib/json-schemas/v3/tech-record/get/psv/complete/index.json +0 -1027
  74. package/lib/json-schemas/v3/tech-record/get/psv/skeleton/index.json +0 -1120
  75. package/lib/json-schemas/v3/tech-record/get/psv/testable/index.json +0 -1097
  76. package/lib/json-schemas/v3/tech-record/get/search/complete/index.json +0 -55
  77. package/lib/json-schemas/v3/tech-record/get/search/skeleton/index.json +0 -55
  78. package/lib/json-schemas/v3/tech-record/get/trl/complete/index.json +0 -1307
  79. package/lib/json-schemas/v3/tech-record/get/trl/skeleton/index.json +0 -1002
  80. package/lib/json-schemas/v3/tech-record/get/trl/testable/index.json +0 -1155
  81. package/lib/json-schemas/v3/tech-record/post/psv/complete/index.json +0 -1024
  82. package/lib/json-schemas/v3/tech-record/post/psv/skeleton/index.json +0 -1112
  83. package/lib/json-schemas/v3/tech-record/post/psv/testable/index.json +0 -1092
  84. package/lib/json-schemas/v3/tech-record/put/car/complete/request/index.json +0 -87
  85. package/lib/json-schemas/v3/tech-record/put/car/complete/response/index.json +0 -237
  86. package/lib/json-schemas/v3/tech-record/put/car/skeleton/request/index.json +0 -64
  87. package/lib/json-schemas/v3/tech-record/put/car/skeleton/response/index.json +0 -216
  88. package/lib/json-schemas/v3/tech-record/put/hgv/complete/index.json +0 -1009
  89. package/lib/json-schemas/v3/tech-record/put/hgv/skeleton/index.json +0 -1082
  90. package/lib/json-schemas/v3/tech-record/put/hgv/testable/index.json +0 -1077
  91. package/lib/json-schemas/v3/tech-record/put/lgv/complete/request/index.json +0 -97
  92. package/lib/json-schemas/v3/tech-record/put/lgv/complete/response/index.json +0 -247
  93. package/lib/json-schemas/v3/tech-record/put/lgv/skeleton/request/index.json +0 -71
  94. package/lib/json-schemas/v3/tech-record/put/lgv/skeleton/response/index.json +0 -223
  95. package/lib/json-schemas/v3/tech-record/put/trl/complete/index.json +0 -1265
  96. package/lib/json-schemas/v3/tech-record/put/trl/skeleton/index.json +0 -978
  97. package/lib/json-schemas/v3/tech-record/put/trl/testable/index.json +0 -1115
  98. package/lib/package.json +0 -38
  99. package/lib/types/v1/activity/index.d.ts +0 -23
  100. package/lib/types/v1/defect-category-reference-data/index.d.ts +0 -52
  101. package/lib/types/v1/defect-details/index.d.ts +0 -53
  102. package/lib/types/v1/defect-location/index.d.ts +0 -16
  103. package/lib/types/v1/reason-item/index.d.ts +0 -11
  104. package/lib/types/v1/tech-record/index.d.ts +0 -202
  105. package/lib/types/v1/test/index.d.ts +0 -353
  106. package/lib/types/v1/test-result/index.d.ts +0 -136
  107. package/lib/types/v1/test-station/index.d.ts +0 -23
  108. package/lib/types/v1/test-type/index.d.ts +0 -98
  109. package/lib/types/v1/vehicle/index.d.ts +0 -345
  110. package/lib/types/v1/vehicle-tech-record/index.d.ts +0 -212
  111. package/lib/types/v1/visit/index.d.ts +0 -366
  112. package/lib/types/v3/tech-record/get/car/complete/index.d.ts +0 -74
  113. package/lib/types/v3/tech-record/get/car/skeleton/index.d.ts +0 -72
  114. package/lib/types/v3/tech-record/get/hgv/complete/index.d.ts +0 -285
  115. package/lib/types/v3/tech-record/get/hgv/skeleton/index.d.ts +0 -285
  116. package/lib/types/v3/tech-record/get/hgv/testable/index.d.ts +0 -285
  117. package/lib/types/v3/tech-record/get/lgv/complete/index.d.ts +0 -75
  118. package/lib/types/v3/tech-record/get/lgv/skeleton/index.d.ts +0 -73
  119. package/lib/types/v3/tech-record/get/motorcycle/complete/index.d.ts +0 -75
  120. package/lib/types/v3/tech-record/get/motorcycle/skeleton/index.d.ts +0 -73
  121. package/lib/types/v3/tech-record/get/psv/complete/index.d.ts +0 -315
  122. package/lib/types/v3/tech-record/get/psv/skeleton/index.d.ts +0 -313
  123. package/lib/types/v3/tech-record/get/psv/testable/index.d.ts +0 -313
  124. package/lib/types/v3/tech-record/get/search/complete/index.d.ts +0 -20
  125. package/lib/types/v3/tech-record/get/search/skeleton/index.d.ts +0 -19
  126. package/lib/types/v3/tech-record/get/trl/complete/index.d.ts +0 -350
  127. package/lib/types/v3/tech-record/get/trl/skeleton/index.d.ts +0 -256
  128. package/lib/types/v3/tech-record/get/trl/testable/index.d.ts +0 -294
  129. package/lib/types/v3/tech-record/post/psv/complete/index.d.ts +0 -315
  130. package/lib/types/v3/tech-record/post/psv/skeleton/index.d.ts +0 -313
  131. package/lib/types/v3/tech-record/post/psv/testable/index.d.ts +0 -313
  132. package/lib/types/v3/tech-record/put/car/complete/request/index.d.ts +0 -24
  133. package/lib/types/v3/tech-record/put/car/complete/response/index.d.ts +0 -75
  134. package/lib/types/v3/tech-record/put/car/skeleton/request/index.d.ts +0 -22
  135. package/lib/types/v3/tech-record/put/car/skeleton/response/index.d.ts +0 -75
  136. package/lib/types/v3/tech-record/put/hgv/complete/index.d.ts +0 -276
  137. package/lib/types/v3/tech-record/put/hgv/skeleton/index.d.ts +0 -276
  138. package/lib/types/v3/tech-record/put/hgv/testable/index.d.ts +0 -276
  139. package/lib/types/v3/tech-record/put/lgv/complete/request/index.d.ts +0 -25
  140. package/lib/types/v3/tech-record/put/lgv/complete/response/index.d.ts +0 -76
  141. package/lib/types/v3/tech-record/put/lgv/skeleton/request/index.d.ts +0 -23
  142. package/lib/types/v3/tech-record/put/lgv/skeleton/response/index.d.ts +0 -76
  143. package/lib/types/v3/tech-record/put/trl/complete/index.d.ts +0 -341
  144. package/lib/types/v3/tech-record/put/trl/skeleton/index.d.ts +0 -250
  145. package/lib/types/v3/tech-record/put/trl/testable/index.d.ts +0 -285
  146. /package/{lib/schema-validator.d.ts → schema-validator.d.ts} +0 -0
  147. /package/{lib/schema-validator.js → schema-validator.js} +0 -0
  148. /package/{lib/schemas.d.ts → schemas.d.ts} +0 -0
  149. /package/{lib/schemas.js → schemas.js} +0 -0
package/package.json CHANGED
@@ -1,38 +1,33 @@
1
1
  {
2
- "name": "@dvsa/cvs-type-definitions",
3
- "version": "2.0.16",
4
- "description": "type definitions for cvs vta application",
5
- "main": "index.js",
6
- "files": [
7
- "lib/**/*",
8
- "json-schemas/**/*",
9
- "types/**/*"
10
- ],
11
- "repository": {
12
- "url": "git://github.com/dvsa/cvs-type-definitions.git"
13
- },
14
- "scripts": {
15
- "build": "tsc",
16
- "test": "npm run generate && jest",
17
- "generate": "ts-node scripts/generateSchemas.ts"
18
- },
19
- "author": "dvsa",
20
- "license": "ISC",
21
- "devDependencies": {
22
- "@jest/globals": "^29.5.0",
23
- "@types/jest": "^29.5.2",
24
- "@types/node": "^18.16.7",
25
- "jest": "^29.5.0",
26
- "json-schema-to-typescript": "^11.0.2",
27
- "ts-jest": "^29.1.0",
28
- "ts-node": "^10.9.1",
29
- "tsconfig-paths": "^4.1.0",
30
- "typescript": "^4.8.4"
31
- },
32
- "dependencies": {
33
- "ajv": "^8.12.0",
34
- "json-schema-deref-sync": "^0.14.0",
35
- "pretty-js": "^0.2.2",
36
- "util": "^0.12.5"
37
- }
2
+ "name": "@dvsa/cvs-type-definitions",
3
+ "version": "2.0.18",
4
+ "description": "type definitions for cvs vta application",
5
+ "main": "index.js",
6
+ "repository": {
7
+ "url": "git://github.com/dvsa/cvs-type-definitions.git"
8
+ },
9
+ "scripts": {
10
+ "build": "tsc",
11
+ "test": "npm run generate && jest",
12
+ "generate": "ts-node scripts/generateSchemas.ts"
13
+ },
14
+ "author": "dvsa",
15
+ "license": "ISC",
16
+ "devDependencies": {
17
+ "@jest/globals": "^29.5.0",
18
+ "@types/jest": "^29.5.2",
19
+ "@types/node": "^18.16.7",
20
+ "jest": "^29.5.0",
21
+ "json-schema-to-typescript": "^11.0.2",
22
+ "ts-jest": "^29.1.0",
23
+ "ts-node": "^10.9.1",
24
+ "tsconfig-paths": "^4.1.0",
25
+ "typescript": "^4.8.4"
26
+ },
27
+ "dependencies": {
28
+ "ajv": "^8.12.0",
29
+ "json-schema-deref-sync": "^0.14.0",
30
+ "pretty-js": "^0.2.2",
31
+ "util": "^0.12.5"
32
+ }
38
33
  }
package/README.md DELETED
@@ -1,48 +0,0 @@
1
- # cvs-type-definitions
2
-
3
- [json schema](https://json-schema.org/) and .ts type definitions for cvs vta application
4
-
5
- # Usage
6
-
7
- ## Install GitHub package:
8
-
9
- - install GitHub package: `npm install @dvsa/cvs-type-definitions@latest`
10
-
11
- ## Example usage (TS types):
12
-
13
- `import { CommercialVehicleTestSchema } from @dvsa/cvs-type-definitions/types/test`
14
-
15
- ## Example usage (json schemas)
16
-
17
- The package exports an `isValidObject()` function which can be used to validate an object against a specified schema. E.g:
18
-
19
- `import { isValidObject } from '@dvsa/cvs-type-definitions/lib/src/schema-validation../../schema-validator';`
20
-
21
- `const isValidVisit: boolean = isValidObject('visit', myVisitObject);`
22
-
23
- # Updating a schema
24
-
25
- Edits should only be made to `json` schema definitions within `json-definitions` directory.
26
-
27
- TypeScript interfaces will be generated from these files and saved to `types` directory. De-referenced json schema definitions will be saved to `json-schemas` directory. Only these two directories are published in the npm package.
28
-
29
- 1. Navigate into the relevant schema (e.g. `./json-definitions/test/index.json`)
30
- 2. Edit file
31
- 3. Generate the new TypeScript and de-referenced json schema definitions using `npm run generate`
32
- 4. Bump the version of the package using `npm version {major|minor|patch}`
33
- 5. Publish updates
34
-
35
- # Adding a new schema
36
-
37
- 1. Create a new subdirectory with an appropriate name within the `json-defininitions` directory (e.g. `my-new-schema`)
38
- 2. If you do not wish for a type file and a de-referenced schema to be generated for a schema, add `.ignore` in the name of the file (e.g. `my-new-schema.ignore.json`)
39
- 3. Generate the new TypeScript definitions using `npm run generate`
40
- 4. Bump the version of the package using `npm version {major|minor|patch}`
41
- 5. Publish updates
42
-
43
- # Publishing a new version
44
-
45
- - Raise a PR
46
- - The PR title should start with `major`, `minor` or `patch` and be followed by the character `(`. Doing this ensure the correct version of the package is published to npm. A Github action should enforce the PR title format.
47
- - Add a description of the changes in the `Changelog` section of the PR description
48
- - Once merged to develop, a github action should create a release and publish a new version of that release on npm
package/lib/README.md DELETED
@@ -1,48 +0,0 @@
1
- # cvs-type-definitions
2
-
3
- [json schema](https://json-schema.org/) and .ts type definitions for cvs vta application
4
-
5
- # Usage
6
-
7
- ## Install GitHub package:
8
-
9
- - install GitHub package: `npm install @dvsa/cvs-type-definitions@latest`
10
-
11
- ## Example usage (TS types):
12
-
13
- `import { CommercialVehicleTestSchema } from @dvsa/cvs-type-definitions/types/test`
14
-
15
- ## Example usage (json schemas)
16
-
17
- The package exports an `isValidObject()` function which can be used to validate an object against a specified schema. E.g:
18
-
19
- `import { isValidObject } from '@dvsa/cvs-type-definitions/lib/src/schema-validation../../schema-validator';`
20
-
21
- `const isValidVisit: boolean = isValidObject('visit', myVisitObject);`
22
-
23
- # Updating a schema
24
-
25
- Edits should only be made to `json` schema definitions within `json-definitions` directory.
26
-
27
- TypeScript interfaces will be generated from these files and saved to `types` directory. De-referenced json schema definitions will be saved to `json-schemas` directory. Only these two directories are published in the npm package.
28
-
29
- 1. Navigate into the relevant schema (e.g. `./json-definitions/test/index.json`)
30
- 2. Edit file
31
- 3. Generate the new TypeScript and de-referenced json schema definitions using `npm run generate`
32
- 4. Bump the version of the package using `npm version {major|minor|patch}`
33
- 5. Publish updates
34
-
35
- # Adding a new schema
36
-
37
- 1. Create a new subdirectory with an appropriate name within the `json-defininitions` directory (e.g. `my-new-schema`)
38
- 2. If you do not wish for a type file and a de-referenced schema to be generated for a schema, add `.ignore` in the name of the file (e.g. `my-new-schema.ignore.json`)
39
- 3. Generate the new TypeScript definitions using `npm run generate`
40
- 4. Bump the version of the package using `npm version {major|minor|patch}`
41
- 5. Publish updates
42
-
43
- # Publishing a new version
44
-
45
- - Raise a PR
46
- - The PR title should start with `major`, `minor` or `patch` and be followed by the character `(`. Doing this ensure the correct version of the package is published to npm. A Github action should enforce the PR title format.
47
- - Add a description of the changes in the `Changelog` section of the PR description
48
- - Once merged to develop, a github action should create a release and publish a new version of that release on npm
@@ -1,62 +0,0 @@
1
- {
2
- "title": "Activity Schema",
3
- "type": "object",
4
- "properties": {
5
- "activityType": {
6
- "type": "string"
7
- },
8
- "testStationName": {
9
- "type": "string"
10
- },
11
- "testStationPNumber": {
12
- "type": "string"
13
- },
14
- "testStationEmail": {
15
- "type": "string"
16
- },
17
- "testStationType": {
18
- "type": "string"
19
- },
20
- "testerName": {
21
- "type": "string"
22
- },
23
- "testerStaffId": {
24
- "type": "string"
25
- },
26
- "testerEmail": {
27
- "type": "string"
28
- },
29
- "startTime": {
30
- "type": "string"
31
- },
32
- "endTime": {
33
- "type": "string"
34
- },
35
- "parentId": {
36
- "type": "string"
37
- },
38
- "waitReason": {
39
- "type": "array",
40
- "items": {
41
- "type": "string"
42
- }
43
- },
44
- "notes": {
45
- "type": "string"
46
- },
47
- "id": {
48
- "type": "string"
49
- }
50
- },
51
- "additionalProperties": false,
52
- "required": [
53
- "activityType",
54
- "testStationName",
55
- "testStationPNumber",
56
- "testStationEmail",
57
- "testStationType",
58
- "testerName",
59
- "testerStaffId",
60
- "startTime"
61
- ]
62
- }
@@ -1,440 +0,0 @@
1
- {
2
- "title": "Defect Category Reference Data Schema",
3
- "type": "object",
4
- "properties": {
5
- "imNumber": {
6
- "type": "integer"
7
- },
8
- "imDescription": {
9
- "type": "string"
10
- },
11
- "forVehicleType": {
12
- "type": "array",
13
- "items": {
14
- "type": "string"
15
- }
16
- },
17
- "additionalInfo": {
18
- "title": "Additional Info Schema",
19
- "type": "object",
20
- "properties": {
21
- "psv": {
22
- "properties": {
23
- "location": {
24
- "title": "Defect Location Metadata Schema",
25
- "type": "object",
26
- "properties": {
27
- "vertical": {
28
- "anyOf": [
29
- {
30
- "type": "array",
31
- "items": {
32
- "type": "string"
33
- }
34
- },
35
- {
36
- "type": "null"
37
- }
38
- ]
39
- },
40
- "horizontal": {
41
- "anyOf": [
42
- {
43
- "type": "array",
44
- "items": {
45
- "type": "string"
46
- }
47
- },
48
- {
49
- "type": "null"
50
- }
51
- ]
52
- },
53
- "lateral": {
54
- "anyOf": [
55
- {
56
- "type": "array",
57
- "items": {
58
- "type": "string"
59
- }
60
- },
61
- {
62
- "type": "null"
63
- }
64
- ]
65
- },
66
- "longitudinal": {
67
- "anyOf": [
68
- {
69
- "type": "array",
70
- "items": {
71
- "type": "string"
72
- }
73
- },
74
- {
75
- "type": "null"
76
- }
77
- ]
78
- },
79
- "rowNumber": {
80
- "anyOf": [
81
- {
82
- "type": "array",
83
- "items": {
84
- "type": "number"
85
- }
86
- },
87
- {
88
- "type": "null"
89
- }
90
- ]
91
- },
92
- "seatNumber": {
93
- "anyOf": [
94
- {
95
- "type": "array",
96
- "items": {
97
- "type": "integer"
98
- }
99
- },
100
- {
101
- "type": "null"
102
- }
103
- ]
104
- },
105
- "axleNumber": {
106
- "anyOf": [
107
- {
108
- "type": "array",
109
- "items": {
110
- "type": "number"
111
- }
112
- },
113
- {
114
- "type": "null"
115
- }
116
- ]
117
- }
118
- },
119
- "additionalProperties": false
120
- },
121
- "notes": {
122
- "type": "boolean"
123
- }
124
- },
125
- "additionalProperties": false
126
- },
127
- "hgv": {
128
- "properties": {
129
- "location": {
130
- "title": "Defect Location Metadata Schema",
131
- "type": "object",
132
- "properties": {
133
- "vertical": {
134
- "anyOf": [
135
- {
136
- "type": "array",
137
- "items": {
138
- "type": "string"
139
- }
140
- },
141
- {
142
- "type": "null"
143
- }
144
- ]
145
- },
146
- "horizontal": {
147
- "anyOf": [
148
- {
149
- "type": "array",
150
- "items": {
151
- "type": "string"
152
- }
153
- },
154
- {
155
- "type": "null"
156
- }
157
- ]
158
- },
159
- "lateral": {
160
- "anyOf": [
161
- {
162
- "type": "array",
163
- "items": {
164
- "type": "string"
165
- }
166
- },
167
- {
168
- "type": "null"
169
- }
170
- ]
171
- },
172
- "longitudinal": {
173
- "anyOf": [
174
- {
175
- "type": "array",
176
- "items": {
177
- "type": "string"
178
- }
179
- },
180
- {
181
- "type": "null"
182
- }
183
- ]
184
- },
185
- "rowNumber": {
186
- "anyOf": [
187
- {
188
- "type": "array",
189
- "items": {
190
- "type": "number"
191
- }
192
- },
193
- {
194
- "type": "null"
195
- }
196
- ]
197
- },
198
- "seatNumber": {
199
- "anyOf": [
200
- {
201
- "type": "array",
202
- "items": {
203
- "type": "integer"
204
- }
205
- },
206
- {
207
- "type": "null"
208
- }
209
- ]
210
- },
211
- "axleNumber": {
212
- "anyOf": [
213
- {
214
- "type": "array",
215
- "items": {
216
- "type": "number"
217
- }
218
- },
219
- {
220
- "type": "null"
221
- }
222
- ]
223
- }
224
- },
225
- "additionalProperties": false
226
- },
227
- "notes": {
228
- "type": "boolean"
229
- }
230
- },
231
- "additionalProperties": false
232
- },
233
- "trl": {
234
- "properties": {
235
- "location": {
236
- "title": "Defect Location Metadata Schema",
237
- "type": "object",
238
- "properties": {
239
- "vertical": {
240
- "anyOf": [
241
- {
242
- "type": "array",
243
- "items": {
244
- "type": "string"
245
- }
246
- },
247
- {
248
- "type": "null"
249
- }
250
- ]
251
- },
252
- "horizontal": {
253
- "anyOf": [
254
- {
255
- "type": "array",
256
- "items": {
257
- "type": "string"
258
- }
259
- },
260
- {
261
- "type": "null"
262
- }
263
- ]
264
- },
265
- "lateral": {
266
- "anyOf": [
267
- {
268
- "type": "array",
269
- "items": {
270
- "type": "string"
271
- }
272
- },
273
- {
274
- "type": "null"
275
- }
276
- ]
277
- },
278
- "longitudinal": {
279
- "anyOf": [
280
- {
281
- "type": "array",
282
- "items": {
283
- "type": "string"
284
- }
285
- },
286
- {
287
- "type": "null"
288
- }
289
- ]
290
- },
291
- "rowNumber": {
292
- "anyOf": [
293
- {
294
- "type": "array",
295
- "items": {
296
- "type": "number"
297
- }
298
- },
299
- {
300
- "type": "null"
301
- }
302
- ]
303
- },
304
- "seatNumber": {
305
- "anyOf": [
306
- {
307
- "type": "array",
308
- "items": {
309
- "type": "integer"
310
- }
311
- },
312
- {
313
- "type": "null"
314
- }
315
- ]
316
- },
317
- "axleNumber": {
318
- "anyOf": [
319
- {
320
- "type": "array",
321
- "items": {
322
- "type": "number"
323
- }
324
- },
325
- {
326
- "type": "null"
327
- }
328
- ]
329
- }
330
- },
331
- "additionalProperties": false
332
- },
333
- "notes": {
334
- "type": "boolean"
335
- }
336
- },
337
- "additionalProperties": false
338
- }
339
- },
340
- "additionalProperties": false,
341
- "required": [
342
- "hgv",
343
- "psv",
344
- "trl"
345
- ]
346
- },
347
- "items": {
348
- "type": "array",
349
- "items": {
350
- "title": "Defect Item Reference Data Schema",
351
- "type": "object",
352
- "properties": {
353
- "itemNumber": {
354
- "type": "integer"
355
- },
356
- "itemDescription": {
357
- "type": "string"
358
- },
359
- "forVehicleType": {
360
- "type": "array",
361
- "items": {
362
- "type": "string"
363
- }
364
- },
365
- "deficiencies": {
366
- "type": "array",
367
- "items": {
368
- "title": "Defect Deficiency Reference Data Schema",
369
- "type": "object",
370
- "properties": {
371
- "ref": {
372
- "type": "string"
373
- },
374
- "deficiencyId": {
375
- "type": [
376
- "string",
377
- "null"
378
- ]
379
- },
380
- "deficiencySubId": {
381
- "type": "string"
382
- },
383
- "deficiencyCategory": {
384
- "type": "string"
385
- },
386
- "deficiencyText": {
387
- "type": "string"
388
- },
389
- "stdForProhibition": {
390
- "type": "boolean"
391
- },
392
- "forVehicleType": {
393
- "anyOf": [
394
- {
395
- "type": "array",
396
- "items": {
397
- "type": "string"
398
- }
399
- },
400
- {
401
- "type": "string",
402
- "enum": [
403
- "psv",
404
- "hgv",
405
- "trl",
406
- "car",
407
- "lgv",
408
- "motorcycle"
409
- ]
410
- }
411
- ]
412
- }
413
- },
414
- "additionalProperties": false,
415
- "required": [
416
- "ref",
417
- "deficiencyId",
418
- "deficiencySubId",
419
- "deficiencyCategory",
420
- "deficiencyText",
421
- "stdForProhibition",
422
- "forVehicleType"
423
- ]
424
- }
425
- }
426
- },
427
- "additionalProperties": false,
428
- "required": []
429
- }
430
- }
431
- },
432
- "additionalProperties": false,
433
- "required": [
434
- "imNumber",
435
- "imDescription",
436
- "forVehicleType",
437
- "additionalInfo",
438
- "items"
439
- ]
440
- }