mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
Merge pull request #2968 from smilerz/keywords_not_required
change Recipe API to make keywords an optional field
This commit is contained in:
@@ -904,7 +904,7 @@ class RecipeSerializer(RecipeBaseSerializer):
|
||||
nutrition = NutritionInformationSerializer(allow_null=True, required=False)
|
||||
properties = PropertySerializer(many=True, required=False)
|
||||
steps = StepSerializer(many=True)
|
||||
keywords = KeywordSerializer(many=True)
|
||||
keywords = KeywordSerializer(many=True, required=False)
|
||||
shared = UserSerializer(many=True, required=False)
|
||||
rating = CustomDecimalField(required=False, allow_null=True, read_only=True)
|
||||
last_cooked = serializers.DateTimeField(required=False, allow_null=True, read_only=True)
|
||||
|
||||
@@ -2200,7 +2200,7 @@ export interface Recipe {
|
||||
* @type {Array<RecipeKeywords>}
|
||||
* @memberof Recipe
|
||||
*/
|
||||
keywords: Array<RecipeKeywords>;
|
||||
keywords?: Array<RecipeKeywords>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<RecipeSteps>}
|
||||
|
||||
Reference in New Issue
Block a user