Skip to content
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

Combine shared enums usage #41

Merged
merged 3 commits into from
Mar 16, 2020
Merged

Conversation

Archomeda
Copy link
Owner

Closes #40.

After looking through the code, there was no reason why it was done this way. The original intention was to emulate the expected id type in the web API, which is a string (as was done with the race). However, the profession was using an enum type. This introduced inconsistency.

This PR resolves this inconsistency. For easiness, the Mumble Client returns enums now. And the respective endpoints that accept either a legend, profession or race as id, will also accept these enum counterparts.

This is a breaking change, and will be introduced in v0.9.0.

@Archomeda Archomeda added Area: Web API v2 Related to the v2 web API Area: Mumble Link Related to the Mumble Link API Type: Refactor An improvement to the project that doesn't necessarily add a new features labels Mar 16, 2020
@Archomeda Archomeda merged commit 668ca86 into 0.9 Mar 16, 2020
@Archomeda Archomeda deleted the refactor/combine-shared-enums-usage branch March 16, 2020 19:03
@Archomeda Archomeda mentioned this pull request Mar 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Mumble Link Related to the Mumble Link API Area: Web API v2 Related to the v2 web API Type: Refactor An improvement to the project that doesn't necessarily add a new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant