Skip to content

Commit

Permalink
make evaluationSummary optional for multi tenancy [elifesciences/enha…
Browse files Browse the repository at this point in the history
  • Loading branch information
will-byrne committed Nov 1, 2024
1 parent bc6adbc commit f0b79f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/http-schema/http-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ const EvaluationSchema = Joi.object({
});

const PeerReviewSchema = Joi.object({
evaluationSummary: EvaluationSchema.required(),
evaluationSummary: EvaluationSchema.optional(),
reviews: Joi.array().items(EvaluationSchema).required(),
authorResponse: EvaluationSchema.optional(),
});
Expand Down
2 changes: 1 addition & 1 deletion src/model/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export type Evaluation = {
};

export type PeerReview = {
evaluationSummary: Evaluation,
evaluationSummary?: Evaluation,
reviews: Evaluation[],
authorResponse?: Evaluation,
};
Expand Down

0 comments on commit f0b79f2

Please sign in to comment.