diff --git a/json-definitions/v1/central-docs/index.json b/json-definitions/v1/central-docs/index.json new file mode 100644 index 00000000..07b484f9 --- /dev/null +++ b/json-definitions/v1/central-docs/index.json @@ -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" + ] +} diff --git a/json-definitions/v1/test-type/index.json b/json-definitions/v1/test-type/index.json index be91bbab..dac5321c 100644 --- a/json-definitions/v1/test-type/index.json +++ b/json-definitions/v1/test-type/index.json @@ -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": [ diff --git a/json-schemas/v1/test-result/index.json b/json-schemas/v1/test-result/index.json index 991c5e6f..85657935 100644 --- a/json-schemas/v1/test-result/index.json +++ b/json-schemas/v1/test-result/index.json @@ -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": [ diff --git a/json-schemas/v1/test-type/index.json b/json-schemas/v1/test-type/index.json index 4f4a304a..7af79782 100644 --- a/json-schemas/v1/test-type/index.json +++ b/json-schemas/v1/test-type/index.json @@ -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": [ diff --git a/json-schemas/v1/test/index.json b/json-schemas/v1/test/index.json index c2c2c314..d42f89ee 100644 --- a/json-schemas/v1/test/index.json +++ b/json-schemas/v1/test/index.json @@ -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": [ @@ -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": [ diff --git a/json-schemas/v1/vehicle/index.json b/json-schemas/v1/vehicle/index.json index a8f807ea..5172a98c 100644 --- a/json-schemas/v1/vehicle/index.json +++ b/json-schemas/v1/vehicle/index.json @@ -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": [ @@ -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": [ diff --git a/json-schemas/v1/visit/index.json b/json-schemas/v1/visit/index.json index c1a647c9..08dce938 100644 --- a/json-schemas/v1/visit/index.json +++ b/json-schemas/v1/visit/index.json @@ -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": [ @@ -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": [ diff --git a/schemas.ts b/schemas.ts index 43826aab..8c5ac25d 100644 --- a/schemas.ts +++ b/schemas.ts @@ -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", diff --git a/types/v1/test-result/index.d.ts b/types/v1/test-result/index.d.ts index 1ccb1808..d40dd433 100644 --- a/types/v1/test-result/index.d.ts +++ b/types/v1/test-result/index.d.ts @@ -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; diff --git a/types/v1/test-type/index.d.ts b/types/v1/test-type/index.d.ts index 36079ebf..ce26e6d7 100644 --- a/types/v1/test-type/index.d.ts +++ b/types/v1/test-type/index.d.ts @@ -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; diff --git a/types/v1/test/index.d.ts b/types/v1/test/index.d.ts index 403b2892..1d58e336 100644 --- a/types/v1/test/index.d.ts +++ b/types/v1/test/index.d.ts @@ -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; diff --git a/types/v1/vehicle/index.d.ts b/types/v1/vehicle/index.d.ts index dc0719d0..69ed1073 100644 --- a/types/v1/vehicle/index.d.ts +++ b/types/v1/vehicle/index.d.ts @@ -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; diff --git a/types/v1/visit/index.d.ts b/types/v1/visit/index.d.ts index cc6f97f6..442aa741 100644 --- a/types/v1/visit/index.d.ts +++ b/types/v1/visit/index.d.ts @@ -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;