techdocs: Add JSON Schema config

Show better error if techdocs.builder is set to 'ci' and if no docs are found.
Return 404 from googleStorage client when a file is not found.
This commit is contained in:
Himanshu Mishra
2020-12-05 10:48:54 +01:00
parent c91fd25a53
commit a212e43142
5 changed files with 66 additions and 9 deletions
+47 -2
View File
@@ -68,11 +68,56 @@
"visibility": "frontend"
},
"storageUrl": {
"type": "string"
"type": "string",
"visibility": "backend"
},
"generators": {
"type": "object",
"properties": {
"techdocs": {
"type": "string",
"visibility": "backend"
}
}
},
"builder": {
"type": "string",
"visibility": "frontend"
},
"publisher": {
"type": "object",
"properties": {
"type": {
"type": "string",
"visibility": "backend"
},
"google": {
"type": "object",
"properties": {
"pathToKey": {
"type": "string",
"visibility": "secret"
},
"projectId": {
"type": "string",
"visibility": "secret"
},
"bucketName": {
"type": "string",
"visibility": "secret"
}
}
}
},
"required": [
"type"
]
}
},
"required": [
"requestUrl"
"requestUrl",
"storageUrl",
"builder"
]
}
}