Fix NS update serializers error
[vfc/nfvo/lcm.git] / lcm / ns / serializers / sol / subscription_auth_data.py
index d5680b0..72015e9 100644 (file)
@@ -20,33 +20,43 @@ from lcm.ns import const
 
 class OAuthCredentialsSerializer(serializers.Serializer):
     clientId = serializers.CharField(
-        help_text="Client identifier to be used in the access token request of the OAuth 2.0 client "
-                  "credentials grant type.", required=False, max_length=255, allow_null=False)
+        help_text="Client identifier to be used in the access token request of the OAuth 2.0 client credentials grant type.",
+        required=False,
+        max_length=255,
+        allow_null=False)
     clientPassword = serializers.CharField(
-        help_text="Client password to be used in the access token request of the OAuth 2.0 client"
-                  " credentials grant type.", required=False, max_length=255, allow_null=False)
+        help_text="Client password to be used in the access token request of the OAuth 2.0 client credentials grant type.",
+        required=False,
+        max_length=255,
+        allow_null=False)
     tokenEndpoint = serializers.CharField(
-        help_text="The token endpoint from which the access token can be obtained.", required=False,
+        help_text="The token endpoint from which the access token can be obtained.",
+        required=False,
         max_length=255,
         allow_null=False)
 
 
 class BasicAuthSerializer(serializers.Serializer):
     userName = serializers.CharField(
-        help_text="Username to be used in HTTP Basic authentication.", max_length=255,
+        help_text="Username to be used in HTTP Basic authentication.",
+        max_length=255,
         required=False,
         allow_null=False)
     password = serializers.CharField(
-        help_text="Password to be used in HTTP Basic authentication.", max_length=255,
+        help_text="Password to be used in HTTP Basic authentication.",
+        max_length=255,
         required=False,
         allow_null=False)
 
 
 class SubscriptionAuthenticationSerializer(serializers.Serializer):
     authType = serializers.ListField(
-        child=serializers.ChoiceField(required=True, choices=const.AUTH_TYPES),
         help_text="Defines the types of Authentication / Authorization which the API consumer is"
-                  " willing to accept when receiving a notification.", required=True)
+                  " willing to accept when receiving a notification.",
+        child=serializers.ChoiceField(
+            required=True,
+            choices=const.AUTH_TYPES),
+        required=True)
     paramsBasic = BasicAuthSerializer(
         help_text="Parameters for authentication/authorization using BASIC.",
         required=False,