Skip to content

[dart-codegen] if name has been set as a possible enum value then the generated code will have a conflict with Dart's built-in name property on the enum class #162

@joshmossas

Description

@joshmossas

Environment

Arri version 0.77.0

Reproduction

None needed

Describe the bug

Dart enums have a built in property called name which returns the name of the current enum value. However if on the server you declared that a possible enum value is name then this will conflict with the built-in enum property.

Image

So dart-codegen needs to handle cases where the enum value has been set to name. (The solution is prolly to prefix it with some character)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcodegenIssues related to generator pluginslang:dart

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions