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:
Azri Kahar
2023-03-02 15:23:13 +08:00
committed by GitHub
parent d5c39fd087
commit 512ca48680
4 changed files with 136 additions and 46 deletions

View File

@@ -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(),
})
)