40-validation/artifact-manifest-schema.json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Artifact Manifest",
"type": "object",
"required": [
"manifestVersion",
"artifact",
"realizes",
"implements",
"documentation",
"ownership",
"quality"
],
"properties": {
"manifestVersion": {
"const": "1"
},
"artifact": {
"type": "object",
"required": [
"id",
"type",
"name",
"status"
]
},
"realizes": {
"type": "object",
"required": [
"capabilities",
"referenceBuildingBlocks",
"solutionBuildingBlocks",
"requirements"
]
},
"implements": {
"type": "object",
"required": [
"domainObjects",
"ports",
"runtimeComponents"
],
"properties": {
"domainObjects": {
"type": "array"
},
"ports": {
"type": "array"
},
"runtimeComponents": {
"type": "array"
},
"useCases": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"code": {
"type": "string"
},
"documentation": {
"type": "string"
},
"tests": {
"type": "array"
},
"requiredTestCategories": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
},
"documentation": {
"type": "object"
},
"ownership": {
"type": "object",
"required": [
"repository",
"buildingBlock",
"modulePath"
]
},
"quality": {
"type": "object",
"required": [
"tests",
"requiredChecks"
],
"properties": {
"tests": {
"type": "array",
"items": {
"type": "string"
}
},
"requiredChecks": {
"type": "array",
"items": {
"type": "string"
}
},
"testCoverage": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "object",
"required": [
"category",
"purpose",
"path"
],
"properties": {
"category": {
"type": "string"
},
"purpose": {
"type": "string",
"minLength": 1
},
"path": {
"type": "string",
"minLength": 1
}
}
}
}
}
}
}
},
"additionalProperties": true
}