Skip to content

Commit 5fca37e

Browse files
committed
Condense env config schema
1 parent 8346ca8 commit 5fca37e

1 file changed

Lines changed: 6 additions & 19 deletions

File tree

deploy.js

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,12 @@ var tv4 = require('tv4');
1010
var schema = {
1111
type: 'object',
1212
properties: {
13-
user: {
14-
type: 'string',
15-
minLength: 1,
16-
},
17-
host: {
18-
type: ['string', 'array'],
19-
},
20-
repo: {
21-
type: 'string',
22-
},
23-
path: {
24-
type: 'string',
25-
},
26-
ref: {
27-
type: 'string',
28-
},
29-
fetch: {
30-
type: 'string',
31-
},
13+
user: { type: 'string', minLength: 1 },
14+
host: { type: ['string', 'array'] },
15+
repo: { type: 'string' },
16+
path: { type: 'string' },
17+
ref: { type: 'string' },
18+
fetch: { type: 'string' },
3219
},
3320
required: ['host', 'repo', 'path', 'ref'],
3421
};

0 commit comments

Comments
 (0)