change Recipe API to make keywords an optional field

This commit is contained in:
smilerz 2024-02-21 08:25:06 -06:00
parent de80702e3f
commit b1f418622f
No known key found for this signature in database
GPG Key ID: 39444C7606D47126
2 changed files with 2 additions and 2 deletions

View File

@ -901,7 +901,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)

View File

@ -2200,7 +2200,7 @@ export interface Recipe {
* @type {Array<RecipeKeywords>}
* @memberof Recipe
*/
keywords: Array<RecipeKeywords>;
keywords?: Array<RecipeKeywords>;
/**
*
* @type {Array<RecipeSteps>}