From ce7b623883c18810d140d6e966bb2eb193f2f4fe Mon Sep 17 00:00:00 2001 From: John Kasper Svergja Date: Thu, 18 Jan 2024 15:21:12 +0100 Subject: [PATCH 1/2] Max length for team name is 17 chars --- src/partials/v1/team-info-metadata.schema.json | 2 +- src/v1/kuben-team-definition.schema.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/partials/v1/team-info-metadata.schema.json b/src/partials/v1/team-info-metadata.schema.json index d9d7970..5b9b30a 100644 --- a/src/partials/v1/team-info-metadata.schema.json +++ b/src/partials/v1/team-info-metadata.schema.json @@ -16,7 +16,7 @@ "description": "The (uniform) name of this team", "type": "string", "minLength": 1, - "maxLength": 16 + "maxLength": 17 }, "name": { "description": "Name of this resource", diff --git a/src/v1/kuben-team-definition.schema.json b/src/v1/kuben-team-definition.schema.json index 33e076e..46b0452 100644 --- a/src/v1/kuben-team-definition.schema.json +++ b/src/v1/kuben-team-definition.schema.json @@ -9,7 +9,7 @@ "uniform_name": { "type": "string", "pattern": "^[a-z-]*$", - "maxLength": 16 + "maxLength": 17 }, "display_name": { "type": "string", From 27eb60cfe9b789b5cc8ce423066f1c45bde2f873 Mon Sep 17 00:00:00 2001 From: "dapla-bot[bot]" <143391972+dapla-bot[bot]@users.noreply.github.com> Date: Thu, 18 Jan 2024 14:22:22 +0000 Subject: [PATCH 2/2] [GENERATE] Java classes from JSON Schema --- .../no/ssb/dapla/kuben/partials/v1/TeamInfoMetadataSchema.java | 2 +- .../main/java/no/ssb/dapla/kuben/v1/KubenTeamDefinition.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/partials/v1/TeamInfoMetadataSchema.java b/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/partials/v1/TeamInfoMetadataSchema.java index 1b79468..4120ae8 100644 --- a/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/partials/v1/TeamInfoMetadataSchema.java +++ b/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/partials/v1/TeamInfoMetadataSchema.java @@ -39,7 +39,7 @@ public class TeamInfoMetadataSchema implements Serializable */ @JsonProperty("team_name") @JsonPropertyDescription("The (uniform) name of this team") - @Size(min = 1, max = 16) + @Size(min = 1, max = 17) private String teamName; /** * Name of this resource 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 0fc33f1..2fbee31 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 @@ -44,7 +44,7 @@ public class KubenTeamDefinition implements Serializable */ @JsonProperty("uniform_name") @Pattern(regexp = "^[a-z-]*$") - @Size(max = 16) + @Size(max = 17) @NotNull private String uniformName; /**