feat(runtime): implement single-article consolidation runtime and modularize codebase
This commit is contained in:
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"$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
|
||||
}
|
||||
Reference in New Issue
Block a user