Skip to content

Commit

Permalink
Ensure content property is present in versionedPreprintSchema
Browse files Browse the repository at this point in the history
  • Loading branch information
nlisgo committed Nov 25, 2024
1 parent 7ec1766 commit 4223c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/form-validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const versionedPreprintSchema = Joi.object({
publishedDate: Joi.date().iso().optional(),
doi: Joi.string().required(),
url: Joi.string().optional(),
content: Joi.array().items(Joi.string()).optional(),
content: Joi.array().items(Joi.string()).min(1).required(),
license: Joi.string().optional(),
corrections: Joi.array().items(correctionSchema).optional(),
});
Expand Down

0 comments on commit 4223c42

Please sign in to comment.