diff --git a/core/server/api/canary/utils/validators/input/schemas/posts.json b/core/server/api/canary/utils/validators/input/schemas/posts.json index 36bef7076c..3a7d187923 100644 --- a/core/server/api/canary/utils/validators/input/schemas/posts.json +++ b/core/server/api/canary/utils/validators/input/schemas/posts.json @@ -102,6 +102,10 @@ "type": ["string", "null"], "maxLength": 500 }, + "email_subject": { + "type": ["string", "null"], + "maxLength": 300 + }, "custom_template": { "type": ["string", "null"], "maxLength": 100 diff --git a/core/server/data/schema/schema.js b/core/server/data/schema/schema.js index a726595860..d9723bf742 100644 --- a/core/server/data/schema/schema.js +++ b/core/server/data/schema/schema.js @@ -62,7 +62,8 @@ module.exports = { twitter_title: {type: 'string', maxlength: 300, nullable: true}, twitter_description: {type: 'string', maxlength: 500, nullable: true}, meta_title: {type: 'string', maxlength: 2000, nullable: true, validations: {isLength: {max: 300}}}, - meta_description: {type: 'string', maxlength: 2000, nullable: true, validations: {isLength: {max: 500}}} + meta_description: {type: 'string', maxlength: 2000, nullable: true, validations: {isLength: {max: 500}}}, + email_subject: {type: 'string', maxlength: 300, nullable: true} }, users: { id: {type: 'string', maxlength: 24, nullable: false, primary: true},