Azure / Azure/azure-rest-api-specs
[BUG] Support diacritical marks for resource group names
- Dominant language
- TypeSpec
- Stars
- 3.1k
- Forks
- 5.9k
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 444
Description
### API Spec link
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/web/resource-manager/Microsoft.Web/stable/2023-01-01/WebApps.json
### API Spec version
2023-01-01
### Describe the bug
Support diactrical marks, as it's supported, at least in the swedish regions (a-la `swedencentral`)
I'm using the Microsoft.Web as an example, but this is an sdk-wide issue w/ the `resourceGroupNameParameter` validation regex pattern, currently set to: `^[-\w\._\(\)]+[^\.]$`
### Expected behavior
Support diactrical marks, as it's supported, at least in the swedish regions (a-la `swedencentral`)
### Actual behavior
```
web.AppsClient#Get: Invalid input: autorest/validation:
validation failed:
parameter=resourceGroupName constraint=Pattern value="testötest" details:
value doesn't match pattern ^[-\w\._\(\)]+[^\.]$
```
### Reproduction Steps
Create a resource group with diactrical marks from the portal, try to retrieve it with any generated sdk.
### Environment
- import path of package in question: `github.com/Azure/azure-sdk-for-go/profiles/latest/web/mgmt/web`
- SDK version: `v68.0.0`
- Specify the exact commit: `2187aca40bbf6931ffac666977e5d29128d82585`
- output of `go version`: `go version go1.21.3 darwin/arm64`
Contributor guide
Assessment
This issue has not been assessed yet.