specification.jsonschema.artifact-data.json Maven / Gradle / Ivy
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://www.metaeffekt.com/schema/artifact-analysis/latest/artifact-data.json",
"type": "array",
"title": "Artifact Correlation YAML Data schema documentation",
"items": {
"type": "object",
"title": "Artifact data section",
"allOf": [
{
"properties": {
"append": {
"$ref": "artifact-fields.json#/$defs/artifactFieldsObject",
"minProperties": 1
},
"remove": {
"$ref": "artifact-fields.json#/$defs/artifactFieldsObject",
"minProperties": 1
},
"clear": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "artifact-fields.json#/$defs/artifactFieldOrAny"
}
},
"overwrite": {
"$ref": "artifact-fields.json#/$defs/artifactFieldsObject",
"minProperties": 1
},
"warnings": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"additionalProperties": false,
"properties": {
"artifacts": {
"type": "boolean"
},
"vulnerabilities": {
"type": "array",
"items": {
"type": "string"
}
},
"warning": {
"type": "string"
}
},
"required": [
"warning"
]
}
}
}
},
{
"$ref": "#/$defs/matcher"
},
{
"anyOf": [
{
"required": [
"affects"
]
},
{
"required": [
"affects-fn"
]
}
]
},
{
"anyOf": [
{
"required": [
"append"
]
},
{
"required": [
"remove"
]
},
{
"required": [
"clear"
]
},
{
"required": [
"overwrite"
]
},
{
"required": [
"warnings"
]
}
]
}
]
},
"$defs": {
"matcher": {
"properties": {
"affects": {
"$ref": "artifact-fields.json#/$defs/artifactFieldOrAnyObjectOrArrayOfObjects"
},
"affects-fn": {
"type": "array",
"items": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "artifact-data-condition.json"
},
{
"$ref": "artifact-fields.json#/$defs/artifactFieldsObject"
}
]
}
}
},
"ignores": {
"$ref": "artifact-fields.json#/$defs/artifactFieldOrAnyObjectOrArrayOfObjects"
},
"ignores-fn": {
"type": "array",
"items": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "artifact-data-condition.json"
},
{
"$ref": "artifact-fields.json#/$defs/artifactFieldsObject"
}
]
}
}
}
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy