We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The follow typespec:
import "@typespec/http"; import "@azure-tools/cadl-ranch-expect"; using TypeSpec.Http; @scenarioService("/authentication/api-key") @doc("Illustrates clients generated with ApiKey authentication.") @useAuth(ApiKeyAuth<ApiKeyLocation.header, "x-ms-api-key">) namespace Authentication.ApiKey; enum MyEnum { Enum: "Enum", Int: "Int", } model MyModel { type: MyEnum; int: int64; } @scenario @scenarioDoc("Expects header 'x-ms-api-key': 'valid-key'") @doc("Check whether client is authenticated") @get @route("/valid") op valid(@body body: MyModel): NoContentResponse;
python emitter generates enum with padded enum name INT_ENUM which is expected to INIT
INT_ENUM
INIT
The text was updated successfully, but these errors were encountered:
msyyc
Successfully merging a pull request may close this issue.
The follow typespec:
python emitter generates enum with padded enum name
INT_ENUM
which is expected toINIT
The text was updated successfully, but these errors were encountered: