Merge pull request #7857 from Budibase/feature/custom-datasource-support-extra
Add 'extra' validation for plugin datasource
This commit is contained in:
commit
ec5100b6ac
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue