Skip to content

[Bug]: Generated ISEnum instead of IS when using "is" as an enum key. #9768

@xiangyan99

Description

@xiangyan99

Describe the bug

When "is" is used as an enum key in the spec, the generated key should be "IS_ENUM"; however, the actual value is "ISEnum".

Reproduction

Generated code using https://github.com/Azure/azure-rest-api-specs/tree/search_enum_issue_repro

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingemitter:client:pythonIssue for the Python client emitter: @typespec/http-client-python

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions