Add 'extra' validation for plugin datasource

This commit is contained in:
Mel O'Hagan 2022-09-20 15:47:17 +01:00
parent d4c4ed0df4
commit 3a6d009114
1 changed files with 9 additions and 0 deletions

View File

@ -75,6 +75,15 @@ function validateDatasource(schema) {
})
.unknown(true)
.required(),
extra: joi.object().pattern(
joi.string(),
joi.object({
type: joi.string().required(),
displayName: joi.string().required(),
required: joi.boolean(),
data: joi.object(),
})
),
}),
})
runJoi(validator, schema)