Skip to content

Commit c7cbf49

Browse files
Merge pull request #56 from JaviCerveraIngram/CPS-30-value-choices
Added parsing of param property value_choices.
2 parents 37bb982 + 61efed2 commit c7cbf49

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

connect/models/parameters.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ class Param(BaseModel):
5959
value_choice = None # type: Optional[List[str]]
6060
""" (List[str]|None) Available choices for parameter. """
6161

62+
value_choices = None # type: Optional[List[ValueChoice]]
63+
""" (List[str]|None) Available dropdown choices for parameter. """
64+
6265
# Undocumented fields (they appear in PHP SDK)
6366
title = None # type: Optional[str]
6467
""" (str|None) Title for parameter. """

connect/models/schemas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,7 @@ class ParamSchema(BaseSchema):
337337
value = fields.Str(allow_none=True)
338338
value_error = fields.Str(allow_none=True)
339339
value_choice = fields.Str(many=True, allow_none=True)
340+
value_choices = fields.Nested(ValueChoiceSchema, many=True, allow_none=True)
340341

341342
# Undocumented fields (they appear in PHP SDK)
342343
title = fields.Str(allow_none=True)

0 commit comments

Comments
 (0)