Commit 3ae7fdf
SDKAuto
CodeGen from PR 22355 in Azure/azure-rest-api-specs
{AzurePostgresql} fixes Azure/azure-rest-api-specs#22302 fix the regex for serverName property (#22355)
* {AzurePostgresql} fixes Azure/azure-rest-api-specs#22302 fix the regex for serverName property
fixes Azure/azure-rest-api-specs#22302
PR to fix the regex for serverName property
As per [this](https://learn.microsoft.com/en-us/azure/postgresql/single-server/tutorial-design-database-using-azure-portal#create-an-azure-database-for-postgresql) docs, the Postgresql Server Name should have the below pattern:
-Server name must be at least 3 characters and at most 63 characters.
-Server name must only contain lowercase letters, numbers, and hyphens. The server name must not start or end in a hyphen.
-Server name must be available.
Current Regex is incorrect: `^[a-z][a-z0-9]*$` as it doesn't allow the hyphen. The correct Regex pattern should be `^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*`
* Update common-types.json1 parent 8c0a811 commit 3ae7fdf
File tree
2 files changed
+2
-2
lines changed- schemas
- 2022-03-08-preview
- 2022-12-01
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
0 commit comments