From e5354a8efc2a5cab2a2d130cdf241ae8786b0fd3 Mon Sep 17 00:00:00 2001 From: Yuanmao Zhu Date: Fri, 3 Nov 2023 21:05:02 -0400 Subject: [PATCH] Fix Swaggers API docs Signed-off-by: Yuanmao Zhu --- src/api-engine/api/routes/node/serializers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api-engine/api/routes/node/serializers.py b/src/api-engine/api/routes/node/serializers.py index de7dc9d15..eea6234a8 100644 --- a/src/api-engine/api/routes/node/serializers.py +++ b/src/api-engine/api/routes/node/serializers.py @@ -330,6 +330,10 @@ class NodeOperationSerializer(serializers.Serializer): class NodeConfigFileSerializer(serializers.ModelSerializer): files = serializers.FileField() + class Meta: + model = Node + fields = ("files",) + # class NodeFileCreateSerializer(serializers.ModelSerializer): # def to_form_paras(self): # custom_paras = to_form_paras(self)