Skip to content

Commit 140c9d3

Browse files
Merge pull request #49 from JaviCerveraIngram/CPS-16-null-fields
More fixes for null values.
2 parents 0c8b8e3 + d7e5388 commit 140c9d3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

connect/models/parameters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class Param(BaseModel):
5050
type = None # type: str
5151
""" (str) Type of parameter. """
5252

53-
value = None # type: str
54-
""" (str) Value of parameter. """
53+
value = None # type: Optional[str]
54+
""" (str|None) Value of parameter. """
5555

5656
value_error = None # type: Optional[str]
5757
""" (str|None) Error indicated for parameter. """

connect/models/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ class ParamSchema(BaseSchema):
334334
name = fields.Str()
335335
description = fields.Str()
336336
type = fields.Str()
337-
value = fields.Str()
337+
value = fields.Str(allow_none=True)
338338
value_error = fields.Str(allow_none=True)
339339
value_choice = fields.Str(many=True, allow_none=True)
340340

0 commit comments

Comments
 (0)