mirror of
https://github.com/directus/directus.git
synced 2026-02-13 05:45:26 -05:00
Allow null for related_collection in applyJoiSchema (#17665)
* allow null for related_collection * Add M2A to schema tests * Trigger testing for all vendors * Standardize naming convention * Update deleted collections assertion * Fix typo * Revert testing for all vendors --------- Co-authored-by: ian <licitdev@gmail.com>
This commit is contained in:
@@ -38,7 +38,7 @@ const applyJoiSchema = Joi.object({
|
||||
Joi.object({
|
||||
collection: Joi.string().required(),
|
||||
field: Joi.string().required(),
|
||||
related_collection: Joi.string(),
|
||||
related_collection: Joi.string().allow(null),
|
||||
diff: Joi.array().items(deepDiffSchema).required(),
|
||||
})
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user