Skip to content

[http-client-python] Enum name cause compile error #10398

@tadelesh

Description

@tadelesh

For this following spec, python emitter will generate the enum with - which could not pass compile.

union EAPMethod {
  string,

  /** PEAP authentication. */
  PEAP: "PEAP",

  /** EAP-TLS authentication. */
  `EAP-TLS`: "EAP-TLS",

  /** EAP-TTLS authentication. */
  `EAP-TTLS`: "EAP-TTLS",

  /** EAP-FAST authentication. */
  `EAP-FAST`: "EAP-FAST",
}

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