feat(runtime): implement single-article consolidation runtime and modularize codebase
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://schemas.aftech.internal/article-consolidation/v1/repair-operations.schema.json",
|
||||
"x-contract-version": "1.0.0",
|
||||
"title": "TextRepairOperations",
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"target_candidate_id",
|
||||
"original_fragment",
|
||||
"replacement_fragment",
|
||||
"category",
|
||||
"rationale"
|
||||
],
|
||||
"properties": {
|
||||
"target_candidate_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"original_fragment": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"replacement_fragment": {
|
||||
"type": "string"
|
||||
},
|
||||
"category": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"encoding",
|
||||
"unicode",
|
||||
"spacing",
|
||||
"punctuation_corruption",
|
||||
"obvious_typo"
|
||||
]
|
||||
},
|
||||
"rationale": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user