Skip to content

Commit 3e11776

Browse files
committed
feat: increase ProjectTemplate.info allowed size to 1024
1 parent 88eee50 commit 3e11776

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/services/ProcessorServiceProjectTemplate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function createSchema () {
6262
metadata: Joi.object(),
6363
icon: Joi.string().max(255).required(),
6464
question: Joi.string().max(255).required(),
65-
info: Joi.string().max(255).required(),
65+
info: Joi.string().max(1024).required(),
6666
aliases: Joi.array().required()
6767
})
6868
// TODO rewrite these condition so only one of these must be "present" and "not-null"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"topic":"project.action.create","originator":"project-api","timestamp":"2019-06-21T02:00:27.369Z","mime-type":"application/json","payload":{"resource":"project.template","createdAt":"2019-06-21T02:00:27.263Z","updatedAt":"2019-06-21T02:00:27.264Z","disabled":false,"hidden":false,"id":1,"name":"new name","key":"new key 2","metadata":{},"subCategory":"app","category":"app","icon":"http://example.com/icon1.ico","question":"question 1","info":"info 1","aliases":["key-1","key_1"],"scope":{"scope1":"scope 1"},"phases":{"phase1":"phase 1"},"createdBy":40051333,"updatedBy":40051333,"form":null,"planConfig":null,"priceConfig":null,"deletedAt":null,"deletedBy":null}}
1+
{"topic":"project.action.create","originator":"project-api","timestamp":"2019-06-21T02:00:27.369Z","mime-type":"application/json","payload":{"resource":"project.template","createdAt":"2019-06-21T02:00:27.263Z","updatedAt":"2019-06-21T02:00:27.264Z","disabled":false,"hidden":false,"id":1,"name":"new name","key":"new key 2","metadata":{},"subCategory":"app","category":"app","icon":"http://example.com/icon1.ico","question":"question 1","info":"info which is very long and more than 255 characters, info which is very long and more than 255 characters, info which is very long and more than 255 characters, info which is very long and more than 255 characters, info which is very long and more than 255 characters, info which is very long and more than 255 characters","aliases":["key-1","key_1"],"scope":{"scope1":"scope 1"},"phases":{"phase1":"phase 1"},"createdBy":40051333,"updatedBy":40051333,"form":null,"planConfig":null,"priceConfig":null,"deletedAt":null,"deletedBy":null}}

0 commit comments

Comments
 (0)