summaryrefslogtreecommitdiffstats
path: root/lcm
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2019-04-04 17:17:59 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2019-04-04 17:17:59 +0800
commitfadc07d6119cc2391b9eb4f74abd540620d5977d (patch)
tree289915cf83e31ee6d2e60ffab78e817f57f304ec /lcm
parent496e4fea5e67caae96433150df2797947939312b (diff)
Update serializer for response
Change-Id: Ibc3ac822fcff6762a4a6b00f2bdc09859d929b3d Issue-ID: VFC-1306 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'lcm')
-rw-r--r--lcm/lcm/nf/serializers/response.py24
1 files changed, 19 insertions, 5 deletions
diff --git a/lcm/lcm/nf/serializers/response.py b/lcm/lcm/nf/serializers/response.py
index 132788ac..886b2b6a 100644
--- a/lcm/lcm/nf/serializers/response.py
+++ b/lcm/lcm/nf/serializers/response.py
@@ -16,11 +16,25 @@ from rest_framework import serializers
class ProblemDetailsSerializer(serializers.Serializer):
- type = serializers.CharField(help_text="Type", required=False, allow_null=True)
- title = serializers.CharField(help_text="Title", required=False, allow_null=True)
- status = serializers.IntegerField(help_text="Status", required=True)
- detail = serializers.CharField(help_text="Detail", required=True, allow_null=True)
- instance = serializers.CharField(help_text="Instance", required=False, allow_null=True)
+ type = serializers.CharField(
+ help_text="Type",
+ required=False,
+ allow_null=True)
+ title = serializers.CharField(
+ help_text="Title",
+ required=False,
+ allow_null=True)
+ status = serializers.IntegerField(
+ help_text="Status",
+ required=True)
+ detail = serializers.CharField(
+ help_text="Detail",
+ required=True,
+ allow_null=True)
+ instance = serializers.CharField(
+ help_text="Instance",
+ required=False,
+ allow_null=True)
additional_details = serializers.ListField(
help_text="Any number of additional attributes, as defined in a " +
"specification or by an implementation.",