Skip to content

[python] Enum member names drop underscores before date segments #10312

Closed

Description

@iscai-msft
  • WEB_SEARCH_PREVIEW_2025_03_11 is emitted as WEB_SEARCH_PREVIEW2025_03_11 (underscore before the date dropped)
  • DEFAULT_2024_11_15 is emitted as DEFAULT2024_11_15 (same issue)

Similarly A2A enum member gets mangled to A2_A
In AgentEndpointProtocol, the value A2A is being emitted as A2_A. The emitter is incorrectly inserting an underscore, probably from a regex that tries to split on transitions between letters and digits.

Part of issues Darren Cohen (@dargilco) is dealing with in his post processing script.

Activity

  1. self-assigned this
    on Apr 8, 2026
  2. iscai-msft commented on Oct 26, 2026

    @iscai-msft
    MemberAuthor

    Libba Lawrence (@l0lawrence) started this but didn't finish, feel free to use my existing pr

  3. added a commit that references this issue on Oct 29, 2026
    231125b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

emitter: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