Skip to content

Commit

Permalink
Merge pull request #22 from statisticsnorway/allow-digit-in-uniform-name
Browse files Browse the repository at this point in the history
Allow digit in uniform_name
  • Loading branch information
johnksv committed Aug 26, 2024
2 parents 273f06a + 9d081b8 commit a3d17fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class KubenTeamDefinition implements Serializable
*
*/
@JsonProperty("uniform_name")
@Pattern(regexp = "^[a-z-]*$")
@Pattern(regexp = "^[a-z][a-z0-9-]*$")
@Size(max = 17)
@NotNull
private String uniformName;
Expand Down
2 changes: 1 addition & 1 deletion src/v1/kuben-team-definition.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"properties": {
"uniform_name": {
"type": "string",
"pattern": "^[a-z-]*$",
"pattern": "^[a-z][a-z0-9-]*$",
"maxLength": 17
},
"display_name": {
Expand Down

0 comments on commit a3d17fc

Please sign in to comment.