Skip to content

Commit 9fa20d7

Browse files
committed
confluence documents
yaml example: ``` document: confluence: host: "https://spaces.redhat.com" spaces: - name: telco5gocp patterns: - Debugging an OCP host ``` Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
1 parent 78b3b9a commit 9fa20d7

File tree

1 file changed

+42
-4
lines changed

1 file changed

+42
-4
lines changed

v2/knowledge.json

+42-4
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,19 @@
5656
"document": {
5757
"description": "The knowledge documents.",
5858
"type": "object",
59-
"required": [
60-
"repo",
61-
"commit",
62-
"patterns"
59+
"anyOf": [
60+
{
61+
"required": [
62+
"repo",
63+
"commit",
64+
"patterns"
65+
]
66+
},
67+
{
68+
"required": [
69+
"confluence"
70+
]
71+
}
6372
],
6473
"unevaluatedProperties": false,
6574
"properties": {
@@ -93,6 +102,35 @@
93102
"folder/knowledge_doc.md"
94103
]
95104
}
105+
},
106+
"confluence": {
107+
"type": "object",
108+
"required": [
109+
"host",
110+
"spaces"
111+
],
112+
"properties": {
113+
"host": { "type": "string" },
114+
"spaces": {
115+
"type": "array",
116+
"items": {
117+
"type": "object",
118+
"properties": {
119+
"name": { "type": "string" },
120+
"pages": {
121+
"type": "array",
122+
"items": {
123+
"type": "object",
124+
"properties": {
125+
"title": { "type": "string" },
126+
"version": { "type": "integer" }
127+
}
128+
}
129+
}
130+
}
131+
}
132+
}
133+
}
96134
}
97135
}
98136
}

0 commit comments

Comments
 (0)