validate project name
This commit is contained in:
parent
8009d7e584
commit
38bd46accd
@ -40,6 +40,10 @@ ProjectsCollection.prototype.validateConfig = function(config, callback) {
|
|||||||
validateParams(config, {
|
validateParams(config, {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
|
name: {
|
||||||
|
type: 'string',
|
||||||
|
pattern: /^(\w|-)+$/
|
||||||
|
},
|
||||||
scm: {
|
scm: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
required: true,
|
required: true,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user