diff --git a/v2/knowledge.json b/v2/knowledge.json index 45cb76e..623eff7 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": [ + "wiki" + ] + } ], "unevaluatedProperties": false, "properties": { @@ -93,6 +102,26 @@ "folder/knowledge_doc.md" ] } + }, + "wiki": { + "type": "object", + "required": [ + "host", + "spaces" + ], + "properties": { + "host": { "type": "string" }, + "pages": { + "type": "array", + "items": { + "type": "object", + "properties": { + "title": { "type": "string" }, + "oldid": { "type": "integer" } + } + } + } + } } } }