mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-06 04:42:40 +02:00
allow null options
This commit is contained in:
parent
c903765be7
commit
2855df5776
1 changed files with 2 additions and 2 deletions
|
@ -15,9 +15,9 @@ export const createShowcaseItemSchema = (tags: string[]): Joi.ObjectSchema => {
|
|||
return Joi.object({
|
||||
title: Joi.string().required(),
|
||||
description: Joi.string().required(),
|
||||
preview: Joi.string().required(),
|
||||
preview: Joi.string().required().allow(null),
|
||||
website: Joi.string().required(),
|
||||
source: Joi.string().required(),
|
||||
source: Joi.string().required().allow(null),
|
||||
tags: tagsSchema,
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue