Skip to content

Commit

Permalink
Merge pull request #156 from Microsoft/users/tedchamb/dev
Browse files Browse the repository at this point in the history
Fix deserialization issue with missing DayOfWeek.
  • Loading branch information
tedchamb authored Jan 3, 2019
2 parents 27ad43e + c9514ab commit 2437212
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions vsts/vsts/work/v4_0/models/team_setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TeamSetting(TeamSettingsDataContractBase):
:param default_iteration_macro: Default Iteration macro (if any)
:type default_iteration_macro: str
:param working_days: Days that the team is working
:type working_days: list of DayOfWeek
:type working_days: list of str
"""

_attribute_map = {
Expand All @@ -38,7 +38,7 @@ class TeamSetting(TeamSettingsDataContractBase):
'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'},
'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'},
'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'},
'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'}
'working_days': {'key': 'workingDays', 'type': '[str]'}
}

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):
Expand Down
4 changes: 2 additions & 2 deletions vsts/vsts/work/v4_0/models/team_settings_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class TeamSettingsPatch(Model):
:param default_iteration_macro:
:type default_iteration_macro: str
:param working_days:
:type working_days: list of DayOfWeek
:type working_days: list of str
"""

_attribute_map = {
Expand All @@ -32,7 +32,7 @@ class TeamSettingsPatch(Model):
'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'},
'default_iteration': {'key': 'defaultIteration', 'type': 'str'},
'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'},
'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'}
'working_days': {'key': 'workingDays', 'type': '[str]'}
}

def __init__(self, backlog_iteration=None, backlog_visibilities=None, bugs_behavior=None, default_iteration=None, default_iteration_macro=None, working_days=None):
Expand Down
6 changes: 3 additions & 3 deletions vsts/vsts/work/v4_1/models/team_setting.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# --------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -27,7 +27,7 @@ class TeamSetting(TeamSettingsDataContractBase):
:param default_iteration_macro: Default Iteration macro (if any)
:type default_iteration_macro: str
:param working_days: Days that the team is working
:type working_days: list of DayOfWeek
:type working_days: list of str
"""

_attribute_map = {
Expand All @@ -38,7 +38,7 @@ class TeamSetting(TeamSettingsDataContractBase):
'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'},
'default_iteration': {'key': 'defaultIteration', 'type': 'TeamSettingsIteration'},
'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'},
'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'}
'working_days': {'key': 'workingDays', 'type': '[str]'}
}

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):
Expand Down
6 changes: 3 additions & 3 deletions vsts/vsts/work/v4_1/models/team_settings_patch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# --------------------------------------------------------------------------------------------
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
Expand All @@ -23,7 +23,7 @@ class TeamSettingsPatch(Model):
:param default_iteration_macro:
:type default_iteration_macro: str
:param working_days:
:type working_days: list of DayOfWeek
:type working_days: list of str
"""

_attribute_map = {
Expand All @@ -32,7 +32,7 @@ class TeamSettingsPatch(Model):
'bugs_behavior': {'key': 'bugsBehavior', 'type': 'object'},
'default_iteration': {'key': 'defaultIteration', 'type': 'str'},
'default_iteration_macro': {'key': 'defaultIterationMacro', 'type': 'str'},
'working_days': {'key': 'workingDays', 'type': '[DayOfWeek]'}
'working_days': {'key': 'workingDays', 'type': '[str]'}
}

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

0 comments on commit 2437212

Please sign in to comment.