Skip to content

Commit

Permalink
patch(cb2-10282): separate RequiredStandard object from SectionIVA (#159
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>
Co-authored-by: Daniel Searle <daniel.searle1@dvsa.gov.uk>
  • Loading branch information
3 people authored Jan 3, 2024
1 parent 99dcdc1 commit fe91e3f
Show file tree
Hide file tree
Showing 9 changed files with 437 additions and 135 deletions.
80 changes: 28 additions & 52 deletions json-definitions/iva/defects/get/index.json
Original file line number Diff line number Diff line change
@@ -1,67 +1,43 @@
{
"title": "Section IVA",
"title": "DefectGETIVA",
"type": "object",
"additionalProperties": false,
"required": [
"sectionNumber",
"sectionDescription",
"vehicleTypes",
"requiredStandards"
"required" : [
"euVehicleCategories",
"basic",
"normal"
],
"properties": {
"sectionNumber": {
"type": ["string"]
},
"sectionDescription": {
"type": ["string"]
"euVehicleCategories": {
"type": "array",
"items": {
"anyOf" : [
{
"$ref": "../enums/euVehicleCategory.enum.json"
}
]
}
},
"requiredStandards": {
"basic": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"rsNumber",
"requiredStandard",
"refCalculation",
"additionalInfo",
"inspectionTypes"
],
"properties": {
"rsNumber": {
"type": ["integer"]
},
"requiredStandard": {
"type": ["string"]
},
"refCalculation": {
"type": ["string"]
},
"additionalInfo": {
"type": ["boolean"]
},
"inspectionTypes": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "../enums/inspectionType.ignore.json"
}
]
}
"anyOf": [
{
"$ref" : "../sectionIVA.json"
}
}
]
}
},
"additionalInformation": {
"type": "object",
"additionalProperties" : false,
"required" : ["notes"],
"properties": {
"notes" : {
"type" : ["string"]
}
"normal": {
"type": "array",
"items": {
"anyOf": [
{
"$ref" : "../sectionIVA.json"
}
]
}
}
}
}

69 changes: 69 additions & 0 deletions json-definitions/iva/defects/sectionIVA.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"title": "SectionIVA",
"type": "object",
"additionalProperties": false,
"required": [
"sectionNumber",
"sectionDescription",
"requiredStandards"
],
"properties": {
"sectionNumber": {
"type": [
"string"
]
},
"sectionDescription": {
"type": [
"string"
]
},
"requiredStandards": {
"type": "array",
"items": {
"title": "Required Standard",
"type": "object",
"additionalProperties": false,
"required": [
"rsNumber",
"requiredStandard",
"refCalculation",
"additionalInfo",
"inspectionTypes"
],
"properties": {
"rsNumber": {
"type": [
"integer"
]
},
"requiredStandard": {
"type": [
"string"
]
},
"refCalculation": {
"type": [
"string"
]
},
"additionalInfo": {
"type": [
"boolean"
]
},
"inspectionTypes": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "./enums/inspectionType.ignore.json"
}
]
}
}
}
}
}
}
}
Loading

0 comments on commit fe91e3f

Please sign in to comment.