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

Fix the defaultValueDescription for string enums whose values differ from the case names #476

Merged
merged 2 commits into from Aug 26, 2022
Merged

Fix the defaultValueDescription for string enums whose values differ from the case names #476

merged 2 commits into from Aug 26, 2022

Commits on Aug 26, 2022

  1. Fix the defaultValueDescription for string enums whose values differ …

    …from the case names
    
    defaultValueDescription is always the enum case name, but that's not a valid argument when the enum value differs from the case name. Extend ExpressibleByArgument to use rawValue for defaultValueDescription for string enums.
    ian-twilightcoder committed Aug 26, 2022
    Copy the full SHA
    b461ecd View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    1a13cf4 View commit details
    Browse the repository at this point in the history