Merge pull request #7857 from Budibase/feature/custom-datasource-support-extra

Add 'extra' validation for plugin datasource
This commit is contained in:
melohagan 2022-09-21 07:49:46 +01:00 committed by GitHub
commit 650e5a1f4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -75,6 +75,15 @@ function validateDatasource(schema) {
}) })
.unknown(true) .unknown(true)
.required(), .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) runJoi(validator, schema)