Skip to content

Commit

Permalink
feat(CB2-13155): Added central docs to test type
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel-Searle committed Aug 2, 2024
1 parent 8624eec commit c9373ca
Show file tree
Hide file tree
Showing 13 changed files with 238 additions and 0 deletions.
23 changes: 23 additions & 0 deletions json-definitions/v1/central-docs/index.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"title": "Central docs object",
"type": "object",
"properties": {
"issueRequired": {
"type": "boolean"
},
"notes": {
"type": "string"
},
"reasonsForIssue": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"issueRequired",
"reasonsForIssue"
]
}
21 changes: 21 additions & 0 deletions json-definitions/v1/test-type/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,27 @@
"string",
"null"
]
},
"centralDocs": {
"properties": {
"issueRequired": {
"type": "boolean"
},
"notes": {
"type": "string"
},
"reasonsForIssue": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"issueRequired",
"reasonsForIssue"
]
}
},
"required": [
Expand Down
21 changes: 21 additions & 0 deletions json-schemas/v1/test-result/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -903,6 +903,27 @@
"string",
"null"
]
},
"centralDocs": {
"properties": {
"issueRequired": {
"type": "boolean"
},
"notes": {
"type": "string"
},
"reasonsForIssue": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"issueRequired",
"reasonsForIssue"
]
}
},
"required": [
Expand Down
21 changes: 21 additions & 0 deletions json-schemas/v1/test-type/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,27 @@
"string",
"null"
]
},
"centralDocs": {
"properties": {
"issueRequired": {
"type": "boolean"
},
"notes": {
"type": "string"
},
"reasonsForIssue": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"issueRequired",
"reasonsForIssue"
]
}
},
"required": [
Expand Down
42 changes: 42 additions & 0 deletions json-schemas/v1/test/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,27 @@
"string",
"null"
]
},
"centralDocs": {
"properties": {
"issueRequired": {
"type": "boolean"
},
"notes": {
"type": "string"
},
"reasonsForIssue": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"issueRequired",
"reasonsForIssue"
]
}
},
"required": [
Expand Down Expand Up @@ -2411,6 +2432,27 @@
"string",
"null"
]
},
"centralDocs": {
"properties": {
"issueRequired": {
"type": "boolean"
},
"notes": {
"type": "string"
},
"reasonsForIssue": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"issueRequired",
"reasonsForIssue"
]
}
},
"required": [
Expand Down
42 changes: 42 additions & 0 deletions json-schemas/v1/vehicle/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -1557,6 +1557,27 @@
"string",
"null"
]
},
"centralDocs": {
"properties": {
"issueRequired": {
"type": "boolean"
},
"notes": {
"type": "string"
},
"reasonsForIssue": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"issueRequired",
"reasonsForIssue"
]
}
},
"required": [
Expand Down Expand Up @@ -2383,6 +2404,27 @@
"string",
"null"
]
},
"centralDocs": {
"properties": {
"issueRequired": {
"type": "boolean"
},
"notes": {
"type": "string"
},
"reasonsForIssue": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"issueRequired",
"reasonsForIssue"
]
}
},
"required": [
Expand Down
42 changes: 42 additions & 0 deletions json-schemas/v1/visit/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,27 @@
"string",
"null"
]
},
"centralDocs": {
"properties": {
"issueRequired": {
"type": "boolean"
},
"notes": {
"type": "string"
},
"reasonsForIssue": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"issueRequired",
"reasonsForIssue"
]
}
},
"required": [
Expand Down Expand Up @@ -2444,6 +2465,27 @@
"string",
"null"
]
},
"centralDocs": {
"properties": {
"issueRequired": {
"type": "boolean"
},
"notes": {
"type": "string"
},
"reasonsForIssue": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": [
"issueRequired",
"reasonsForIssue"
]
}
},
"required": [
Expand Down
1 change: 1 addition & 0 deletions schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export const schemas = [
"required-standards/defects/get/index.json",
"required-standards/defects/requiredStandardTaxonomySection.json",
"v1/activity/index.json",
"v1/central-docs/index.json",
"v1/defect-category-reference-data/index.json",
"v1/defect-details/index.json",
"v1/defect-location/index.json",
Expand Down
5 changes: 5 additions & 0 deletions types/v1/test-result/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ export interface TestTypeSchema {
| null;
testTypeClassification?: string | null;
deletionFlag?: string | null;
centralDocs?: {
issueRequired: boolean;
notes?: string;
reasonsForIssue: string[];
};
}
export interface ModTypeSchema {
code: string;
Expand Down
5 changes: 5 additions & 0 deletions types/v1/test-type/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ export interface TestTypeSchema {
| null;
testTypeClassification?: string | null;
deletionFlag?: string | null;
centralDocs?: {
issueRequired: boolean;
notes?: string;
reasonsForIssue: string[];
};
}
export interface ModTypeSchema {
code: string;
Expand Down
5 changes: 5 additions & 0 deletions types/v1/test/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ export interface TestTypeSchema {
| null;
testTypeClassification?: string | null;
deletionFlag?: string | null;
centralDocs?: {
issueRequired: boolean;
notes?: string;
reasonsForIssue: string[];
};
}
export interface ModTypeSchema {
code: string;
Expand Down
5 changes: 5 additions & 0 deletions types/v1/vehicle/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,11 @@ export interface TestTypeSchema {
| null;
testTypeClassification?: string | null;
deletionFlag?: string | null;
centralDocs?: {
issueRequired: boolean;
notes?: string;
reasonsForIssue: string[];
};
}
export interface ModTypeSchema {
code: string;
Expand Down
5 changes: 5 additions & 0 deletions types/v1/visit/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,11 @@ export interface TestTypeSchema {
| null;
testTypeClassification?: string | null;
deletionFlag?: string | null;
centralDocs?: {
issueRequired: boolean;
notes?: string;
reasonsForIssue: string[];
};
}
export interface ModTypeSchema {
code: string;
Expand Down

0 comments on commit c9373ca

Please sign in to comment.