Skip to content

Commit

Permalink
Merge pull request #154 from screwdriver-cd/allow-empty-description
Browse files Browse the repository at this point in the history
fix(tokens): Allow token descriptions to be set to empty
  • Loading branch information
d2lam authored Jul 7, 2017
2 parents caf07d0 + 755f2d4 commit 2e2b0e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions models/token.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const MODEL = {
description: Joi
.string()
.max(256)
.allow('')
.description('Token description')
.example('Used to authenticate the mobile app'),

Expand Down
2 changes: 1 addition & 1 deletion test/data/token.update.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Token UPDATE Example
name: 'A new token name'
description: 'A new token description'
description: ''

0 comments on commit 2e2b0e8

Please sign in to comment.