backend-common,core,auth-backend: added initial config schemas

This commit is contained in:
Patrik Oldsberg
2020-11-07 17:51:16 +01:00
parent 7d680c075e
commit ddb5a38f77
4 changed files with 166 additions and 3 deletions
@@ -0,0 +1,80 @@
{
"$schema": "https://backstage.io/schema/config-v1",
"title": "@backstage/backend-common",
"type": "object",
"properties": {
"integrations": {
"type": "object",
"additionalProperties": false,
"properties": {
"github": {
"type": "array",
"items": {
"type": "object",
"required": ["host"],
"properties": {
"host": {
"type": "string"
},
"token": {
"type": "string",
"visibility": "secret"
}
}
}
},
"gitlab": {
"type": "array",
"items": {
"type": "object",
"required": ["host"],
"properties": {
"host": {
"type": "string"
},
"token": {
"type": "string",
"visibility": "secret"
}
}
}
},
"bitbucket": {
"type": "array",
"items": {
"type": "object",
"required": ["host"],
"properties": {
"host": {
"type": "string"
},
"username": {
"type": "string"
},
"appPassword": {
"type": "string",
"visibility": "secret"
}
}
}
},
"azure": {
"type": "array",
"items": {
"type": "object",
"required": ["host"],
"properties": {
"host": {
"type": "string"
},
"token": {
"type": "string",
"visibility": "secret"
}
}
}
}
}
}
}
}
+2 -1
View File
@@ -90,5 +90,6 @@
},
"files": [
"dist"
]
],
"configSchema": "config-schema.json"
}
+50 -1
View File
@@ -80,5 +80,54 @@
},
"files": [
"dist"
]
],
"configSchema": {
"$schema": "https://backstage.io/schema/config-v1",
"title": "@backstage/core",
"type": "object",
"properties": {
"app": {
"type": "object",
"properties": {
"title": {
"type": "string",
"visibility": "frontend"
},
"baseUrl": {
"type": "string",
"visibility": "frontend"
}
},
"required": [
"title",
"baseUrl"
]
},
"backend": {
"type": "object",
"properties": {
"baseUrl": {
"type": "string",
"visibility": "frontend"
}
},
"required": [
"baseUrl"
]
},
"organization": {
"type": "object",
"properties": {
"name": {
"type": "string",
"visibility": "frontend"
}
}
}
},
"required": [
"app",
"backend"
]
}
}
+34 -1
View File
@@ -66,5 +66,38 @@
"files": [
"dist",
"migrations"
]
],
"configSchema": {
"$schema": "https://backstage.io/schema/config-v1",
"title": "@backstage/plugin-auth-backend",
"type": "object",
"properties": {
"auth": {
"type": "object",
"properties": {
"providers": {
"type": "object",
"properties": {
"google": {
"type": "object",
"visibility": "frontend",
"additionalProperties": {
"type": "object",
"properties": {
"clientId": {
"type": "string"
},
"clientSecret": {
"type": "string",
"visibility": "secret"
}
}
}
}
}
}
}
}
}
}
}