Skip to content

@CodingCase is inconsistent between decoding and encoding #36

@Amzd

Description

@Amzd
@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".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions