@Codable
enum Foo {
@CodingCase(match: .string("Test"))
case test
}
decodes from both "Test" and "test" but encodes to "test".
@Codable
enum Foo {
@CodingCase(match: .string("Test", at: "a"))
case test
}
decodes from "Test" but encodes to "test".
I think both should decode and encode using "Test" and not "test".