63 lines
1.4 KiB
JSON
63 lines
1.4 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://schemas.aftech.internal/article-consolidation/v1/hygiene-response.schema.json",
|
|
"x-contract-version": "1.0.0",
|
|
"title": "ArticleContentHygieneResponse",
|
|
"type": "object",
|
|
"required": [
|
|
"title_candidate_id",
|
|
"subtitle_candidate_id",
|
|
"author_candidate_id",
|
|
"kept_block_ids",
|
|
"kept_link_ids",
|
|
"kept_image_ids",
|
|
"repairs"
|
|
],
|
|
"properties": {
|
|
"title_candidate_id": {
|
|
"type": "string"
|
|
},
|
|
"subtitle_candidate_id": {
|
|
"type": ["string", "null"]
|
|
},
|
|
"author_candidate_id": {
|
|
"type": ["string", "null"]
|
|
},
|
|
"kept_block_ids": {
|
|
"type": "array",
|
|
"items": { "type": "string" },
|
|
"minItems": 1,
|
|
"uniqueItems": true
|
|
},
|
|
"kept_link_ids": {
|
|
"type": "array",
|
|
"items": { "type": "string" },
|
|
"uniqueItems": true
|
|
},
|
|
"kept_image_ids": {
|
|
"type": "array",
|
|
"items": { "type": "string" },
|
|
"uniqueItems": true
|
|
},
|
|
"repairs": {
|
|
"$ref": "repair-operations.schema.json"
|
|
},
|
|
"removal_reasons": {
|
|
"type": "object",
|
|
"additionalProperties": {
|
|
"type": "string",
|
|
"enum": [
|
|
"advertisement",
|
|
"recommendation",
|
|
"navigation",
|
|
"newsletter",
|
|
"player_interface",
|
|
"duplicate",
|
|
"non_editorial"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"additionalProperties": false
|
|
}
|