Skip to content
New issue

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

Incorrect casing for enum values - resource type Microsoft.ApiManagement/service/templates #17340

Open
anthony-c-martin opened this issue Jan 13, 2022 · 2 comments
Labels
API Management Service Attention This issue is responsible by Azure service team.

Comments

@anthony-c-martin
Copy link
Member

The TemplateNameParameter enum is defined in camelCase, but according to this issue report, the service only accepts the values in PascalCase: Azure/azure-resource-manager-schemas#2176

Here's where the enum is defined:

"TemplateNameParameter": {
"name": "templateName",
"in": "path",
"required": true,
"type": "string",
"enum": [
"applicationApprovedNotificationMessage",
"accountClosedDeveloper",
"quotaLimitApproachingDeveloperNotificationMessage",
"newDeveloperNotificationMessage",
"emailChangeIdentityDefault",
"inviteUserNotificationMessage",
"newCommentNotificationMessage",
"confirmSignUpIdentityDefault",
"newIssueNotificationMessage",
"purchaseDeveloperNotificationMessage",
"passwordResetIdentityDefault",
"passwordResetByAdminNotificationMessage",
"rejectDeveloperNotificationMessage",
"requestDeveloperNotificationMessage"
],
"x-ms-enum": {
"name": "TemplateName",
"modelAsString": true
},
"description": "Email Template Name Identifier.",
"x-ms-parameter-location": "method"
},

@ghost ghost added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jan 13, 2022
@keryul keryul added ApiManagement Service Attention This issue is responsible by Azure service team. labels Jan 14, 2022
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jan 14, 2022
@ghost
Copy link

ghost commented Jan 17, 2022

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @miaojiang.

Issue Details

The TemplateNameParameter enum is defined in camelCase, but according to this issue report, the service only accepts the values in PascalCase: Azure/azure-resource-manager-schemas#2176

Here's where the enum is defined:

"TemplateNameParameter": {
"name": "templateName",
"in": "path",
"required": true,
"type": "string",
"enum": [
"applicationApprovedNotificationMessage",
"accountClosedDeveloper",
"quotaLimitApproachingDeveloperNotificationMessage",
"newDeveloperNotificationMessage",
"emailChangeIdentityDefault",
"inviteUserNotificationMessage",
"newCommentNotificationMessage",
"confirmSignUpIdentityDefault",
"newIssueNotificationMessage",
"purchaseDeveloperNotificationMessage",
"passwordResetIdentityDefault",
"passwordResetByAdminNotificationMessage",
"rejectDeveloperNotificationMessage",
"requestDeveloperNotificationMessage"
],
"x-ms-enum": {
"name": "TemplateName",
"modelAsString": true
},
"description": "Email Template Name Identifier.",
"x-ms-parameter-location": "method"
},

Author: anthony-c-martin
Assignees: -
Labels:

API Management, Service Attention

Milestone: -

@erwinkramer
Copy link

bump!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Management Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

3 participants