Fix creation of junction fields on m2m when using corresponding

Fixes #368
This commit is contained in:
rijkvanzanten
2020-09-22 11:32:29 -04:00
parent 4b90a0b37c
commit 0a266e098a
3 changed files with 96 additions and 27 deletions

View File

@@ -55,7 +55,7 @@ router.get(
const newFieldSchema = Joi.object({
collection: Joi.string().optional(),
field: Joi.string().required(),
type: Joi.string().valid(...types),
type: Joi.string().valid(...types, null),
schema: Joi.object({
comment: Joi.string().allow(null),
default_value: Joi.any(),