mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Rename database/system to schema/meta in api
This commit is contained in:
@@ -59,14 +59,14 @@ const newFieldSchema = Joi.object({
|
||||
collection: Joi.string().optional(),
|
||||
field: Joi.string().required(),
|
||||
type: Joi.string().valid(...types),
|
||||
database: Joi.object({
|
||||
schema: Joi.object({
|
||||
comment: Joi.string(),
|
||||
default_value: Joi.any(),
|
||||
max_length: [Joi.number(), Joi.string()],
|
||||
is_nullable: Joi.bool(),
|
||||
}),
|
||||
/** @todo base this on default validation */
|
||||
system: Joi.any(),
|
||||
meta: Joi.any(),
|
||||
});
|
||||
|
||||
router.post(
|
||||
|
||||
Reference in New Issue
Block a user