Azure / Azure/azure-rest-api-specs

API Management - EMailTemplate: Wrong enumeration values

Open
#13,341 2 comments 0 reactions 0 assignees View on GitHub
API Management question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

The enumeration values for the API Managements E-Mailtemplates are not working. They have the wrong casing.

Current values ( see https://docs.microsoft.com/en-us/rest/api/apimanagement/2019-12-01/emailtemplate/get#templatename ):

Name | Type | Description
-- | -- | --
accountClosedDeveloper | string |  
applicationApprovedNotificationMessage | string

A rest call with these values does not work:

`https://management.azure.com/subscriptions//resourceGroups//providers/Microsoft.ApiManagement/service//templates/accountClosedDeveloper?api-version=2020-06-01-preview `

The name must be **A**ccountClosedDeveloper with an upper first character.

The enumeration values should be fixed to reflect that and only container values with an upper cased first character.

Place where the changes should happen: https://github.com/Azure/azure-rest-api-specs/blob/master/specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2020-12-01/apimanagement.json#L708

Contributor guide

Open the contributing guide

Research direction

Open specification/apimanagement/resource-manager/Microsoft.ApiManagement/stable/2020-12-01/apimanagement.json around line 708 and compare the E-MailTemplate enum values with the linked API documentation. Confirm the required initial capitalization and verify that the enum contains only the corrected values.

Written by the indexing model from the issue text.

Assessment

Tech stack
json, openapi
Domain
api
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.