1 |
|
2 |
|
3 |
|
4 | const bedrock = require('bedrock');
|
5 |
|
6 | const schema = {
|
7 | title: 'Description',
|
8 | description: 'A description.',
|
9 | type: 'string',
|
10 | minLength: 0,
|
11 | maxLength: 5000,
|
12 | errors: {
|
13 | invalid: 'The description contains invalid characters or is more than ' +
|
14 | '5000 characters in length.',
|
15 | missing: 'Please enter a description.'
|
16 | }
|
17 | };
|
18 |
|
19 | module.exports = function(extend) {
|
20 | if(extend) {
|
21 | return bedrock.util.extend(true, bedrock.util.clone(schema), extend);
|
22 | }
|
23 | return schema;
|
24 | };
|