Add 'extra' validation for plugin datasource
This commit is contained in:
parent
7b8b8a61ac
commit
c72cd71467
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue