Skip to content

Fix deserialization issue with missing DayOfWeek. #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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