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

Make ResponseCode an enum using values from schema definitions #34

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

leftmostcat
Copy link
Collaborator

Using a string lets us get around having to provide every member of the enum, but it makes it difficult to match against specific errors occurring. The schema definitions provide a list of possible values, so we can use those as a basis for an enum value.

Copy link
Member

@babolivier babolivier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per our call, let's stick with the current hack for now

@leftmostcat leftmostcat merged commit 36d9b24 into main Nov 27, 2024
2 checks passed
@leftmostcat leftmostcat deleted the response-code-enum branch November 27, 2024 19:50
hellsworth pushed a commit to hellsworth/ews-rs that referenced this pull request Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants