Make some fields optional

This commit is contained in:
Maël Brunet 2021-05-18 23:46:08 +02:00
parent 8cadeaf564
commit 48296246c5

View file

@ -15,12 +15,13 @@ collections:
- label: "Tags" - label: "Tags"
name: "tags" name: "tags"
widget: "list" widget: "list"
required: false
summary: "{{fields.tag}}" summary: "{{fields.tag}}"
field: {label: "Tag", name: "tag", widget: string} field: {label: "Tag", name: "tag", widget: string}
- {label: "Preparation time", name: "time", widget: "string"} - {label: "Preparation time", name: "time", widget: "string", required: false}
- {label: "Number of servings", name: "servings", widget: "number"} - {label: "Number of servings", name: "servings", widget: "number", required: false}
- {label: "Source of the recipe", name: "sourceLabel", widget: "string"} - {label: "Source of the recipe", name: "sourceLabel", widget: "string", required: false}
- {label: "URL of the source of the recipe", name: "sourceURL", widget: "string"} - {label: "URL of the source of the recipe", name: "sourceURL", widget: "string", required: false}
- label: "Ingredients" - label: "Ingredients"
name: "ingredients" name: "ingredients"
widget: "list" widget: "list"