diff --git a/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/v1/KubenTeamDefinition.java b/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/v1/KubenTeamDefinition.java index 2fbee31..0f6a4f3 100644 --- a/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/v1/KubenTeamDefinition.java +++ b/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/v1/KubenTeamDefinition.java @@ -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; diff --git a/src/v1/kuben-team-definition.schema.json b/src/v1/kuben-team-definition.schema.json index 2ae2464..6c4c285 100644 --- a/src/v1/kuben-team-definition.schema.json +++ b/src/v1/kuben-team-definition.schema.json @@ -8,7 +8,7 @@ "properties": { "uniform_name": { "type": "string", - "pattern": "^[a-z-]*$", + "pattern": "^[a-z][a-z0-9-]*$", "maxLength": 17 }, "display_name": {