Skip to content

Commit 2437212

Browse files
authored
Merge pull request #156 from Microsoft/users/tedchamb/dev
Fix deserialization issue with missing DayOfWeek.
2 parents 27ad43e + c9514ab commit 2437212

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

vsts/vsts/work/v4_0/models/team_setting.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class TeamSetting(TeamSettingsDataContractBase):
2727
:param default_iteration_macro: Default Iteration macro (if any)
2828
:type default_iteration_macro: str
2929
:param working_days: Days that the team is working
30-
:type working_days: list of DayOfWeek
30+
:type working_days: list of str
3131
"""
3232

3333
_attribute_map = {
@@ -38,7 +38,7 @@ class TeamSetting(TeamSettingsDataContractBase):
3838
'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'},
3939
'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'},
4040
'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'},
41-
'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'}
41+
'working_days': {'key': 'workingDays', 'type': '[str]'}
4242
}
4343

4444
def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None):

vsts/vsts/work/v4_0/models/team_settings_patch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class TeamSettingsPatch(Model):
2323
:param default_iteration_macro:
2424
:type default_iteration_macro: str
2525
:param working_days:
26-
:type working_days: list of DayOfWeek
26+
:type working_days: list of str
2727
"""
2828

2929
_attribute_map = {
@@ -32,7 +32,7 @@ class TeamSettingsPatch(Model):
3232
'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'},
3333
'default_iteration': {'key': 'defaultIteration', 'type': 'str'},
3434
'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'},
35-
'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'}
35+
'working_days': {'key': 'workingDays', 'type': '[str]'}
3636
}
3737

3838
def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None):

vsts/vsts/work/v4_1/models/team_setting.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# --------------------------------------------------------------------------------------------
1+
# --------------------------------------------------------------------------------------------
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
@@ -27,7 +27,7 @@ class TeamSetting(TeamSettingsDataContractBase):
2727
:param default_iteration_macro: Default Iteration macro (if any)
2828
:type default_iteration_macro: str
2929
:param working_days: Days that the team is working
30-
:type working_days: list of DayOfWeek
30+
:type working_days: list of str
3131
"""
3232

3333
_attribute_map = {
@@ -38,7 +38,7 @@ class TeamSetting(TeamSettingsDataContractBase):
3838
'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'},
3939
'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'},
4040
'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'},
41-
'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'}
41+
'working_days': {'key': 'workingDays', 'type': '[str]'}
4242
}
4343

4444
def __init__(self, _links=None, url=None, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None):

vsts/vsts/work/v4_1/models/team_settings_patch.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# --------------------------------------------------------------------------------------------
1+
# --------------------------------------------------------------------------------------------
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
@@ -23,7 +23,7 @@ class TeamSettingsPatch(Model):
2323
:param default_iteration_macro:
2424
:type default_iteration_macro: str
2525
:param working_days:
26-
:type working_days: list of DayOfWeek
26+
:type working_days: list of str
2727
"""
2828

2929
_attribute_map = {
@@ -32,7 +32,7 @@ class TeamSettingsPatch(Model):
3232
'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'},
3333
'default_iteration': {'key': 'defaultIteration', 'type': 'str'},
3434
'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'},
35-
'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'}
35+
'working_days': {'key': 'workingDays', 'type': '[str]'}
3636
}
3737

3838
def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None):

0 commit comments

Comments
 (0)