Update packages/server/src/api/routes/utils/validators.ts
Co-authored-by: Sam Rose <hello@samwho.dev>
This commit is contained in:
parent
93aba3ed22
commit
f6f6120e70
|
@ -91,7 +91,8 @@ export function datasourceValidator() {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function filterObject(unknown = true) {
|
function filterObject(opts?: { unknown: boolean }) {
|
||||||
|
const { unknown = true } = opts || {}
|
||||||
const conditionalFilteringObject = () =>
|
const conditionalFilteringObject = () =>
|
||||||
Joi.object({
|
Joi.object({
|
||||||
conditions: Joi.array().items(Joi.link("#schema")).required(),
|
conditions: Joi.array().items(Joi.link("#schema")).required(),
|
||||||
|
|
Loading…
Reference in New Issue