Skip to content

Commit 711a5a5

Browse files
author
Parth Shah
committed
marking project description as an optional field
1 parent a79d013 commit 711a5a5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

local/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
postgres:
2-
image: "postgres:9.4"
2+
image: "postgres:9.5"
33
ports:
44
- "5432:5432"
55
environment:

src/routes/projects/create.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const createProjectValdiations = {
2323
body: {
2424
param: Joi.object().keys({
2525
name: Joi.string().required(),
26-
description: Joi.string().required(),
26+
description: Joi.string().allow(null),
2727
billingAccountId: Joi.number().positive(),
2828
utm: Joi.object().keys({
2929
source: Joi.string().allow(null),

swagger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ definitions:
416416
properties:
417417
name:
418418
type: string
419-
description: project name
419+
description: project name (required)
420420
description:
421421
type: string
422422
description: Project description
@@ -937,4 +937,4 @@ definitions:
937937
content:
938938
type: array
939939
items:
940-
$ref: "#/definitions/Project"
940+
$ref: "#/definitions/Project"

0 commit comments

Comments
 (0)