diff --git a/v2/knowledge.json b/v2/knowledge.json index 45cb76e..b8c43b5 100644 --- a/v2/knowledge.json +++ b/v2/knowledge.json @@ -56,10 +56,19 @@ "document": { "description": "The knowledge documents.", "type": "object", - "required": [ - "repo", - "commit", - "patterns" + "anyOf": [ + { + "required": [ + "repo", + "commit", + "patterns" + ] + }, + { + "required": [ + "confluence" + ] + } ], "unevaluatedProperties": false, "properties": { @@ -93,6 +102,35 @@ "folder/knowledge_doc.md" ] } + }, + "confluence": { + "type": "object", + "required": [ + "host", + "spaces" + ], + "properties": { + "host": { "type": "string" }, + "spaces": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { "type": "string" }, + "pages": { + "type": "array", + "items": { + "type": "object", + "properties": { + "title": { "type": "string" }, + "version": { "type": "integer" } + } + } + } + } + } + } + } } } }