summaryrefslogtreecommitdiffstats
path: root/osdf/models
diff options
context:
space:
mode:
authorAnkitkumar Patel <ankit@research.att.com>2018-03-26 15:03:48 -0400
committerAnkitkumar Patel <ankit@research.att.com>2018-03-26 15:06:16 -0400
commit4de3bb8c9f62f15d6aeb965f9d4c47edb7efd2e9 (patch)
tree3ab94243371e1cc1c6f797c9a1944fa73e2f4fbf /osdf/models
parent215b19360f73242f2348c812c0afab7d77c083a8 (diff)
Updated the schematics models of the HAS API
Updated the validation models and related testcases. Issue-ID: OPTFRA-203 Change-Id: I02219e64543eb7a9a7933322bf19f21e070496f4 Signed-off-by: Ankitkumar Patel <ankit@research.att.com>
Diffstat (limited to 'osdf/models')
-rw-r--r--osdf/models/api/placementResponse.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/osdf/models/api/placementResponse.py b/osdf/models/api/placementResponse.py
index 75d33f0..063a9a8 100644
--- a/osdf/models/api/placementResponse.py
+++ b/osdf/models/api/placementResponse.py
@@ -17,8 +17,8 @@
#
from .common import OSDFModel
-from schematics.types import StringType
-from schematics.types.compound import ModelType, ListType
+from schematics.types import BaseType, StringType
+from schematics.types.compound import ModelType, ListType, DictType
# TODO: update osdf.models
@@ -41,7 +41,7 @@ class Candidates(OSDFModel):
class AssignmentInfo(OSDFModel):
key = StringType(required=True)
- value = StringType(required=True)
+ value = BaseType(required=True)
class PlacementSolution(OSDFModel):