Skip to content

Add raw value to unknown enum cases #28

@JacobHearst

Description

@JacobHearst

Motivation

As a developer using ScryfallKit, I would like the unknown enum cases in the library to expose the enum case that couldn't be decoded so that I can display the raw value instead of "unknown" in my app.

Acceptance Criteria

  • Card.Layout.unknown, Card.FrameEffect.unknown, and MTGSet.Type hold onto the raw value that couldn't be decoded to a known value
  • unknown cases have documentation explaining their purpose and use

Metadata

Metadata

Assignees

Labels

breaking changeRequires API breaking changes to the projectenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions