From 1e2f3f4f58b6b2fab09bd3d67b0545f10713f693 Mon Sep 17 00:00:00 2001 From: John Kasper Svergja Date: Wed, 24 Jan 2024 13:16:17 +0100 Subject: [PATCH 1/3] Update required property for github --- src/v1/kuben-team-definition.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v1/kuben-team-definition.schema.json b/src/v1/kuben-team-definition.schema.json index 46b0452..210305c 100644 --- a/src/v1/kuben-team-definition.schema.json +++ b/src/v1/kuben-team-definition.schema.json @@ -53,7 +53,7 @@ "github": { "type": "object", "required": [ - "name" + "iac_repo" ], "properties": { "iac_repo": { From 227694e14cd0ba053db7afbc9be139086aeb67ea Mon Sep 17 00:00:00 2001 From: John Kasper Svergja Date: Wed, 24 Jan 2024 13:17:13 +0100 Subject: [PATCH 2/3] Update example --- src/v1/additional-team-info.schema.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/v1/additional-team-info.schema.json b/src/v1/additional-team-info.schema.json index a19f97a..e302499 100644 --- a/src/v1/additional-team-info.schema.json +++ b/src/v1/additional-team-info.schema.json @@ -9,7 +9,9 @@ "version": "kuben/v1", "kind": "AdditionalTeamInfo", "metadata": { - "name": "my-name" + "name": "my-name", + "team_name": "dapla-platform", + "visibility": "PUBLIC" }, "spec": { "my-field": "123", From d349f96968572a079b821d489bdee40700fde8d1 Mon Sep 17 00:00:00 2001 From: "dapla-bot[bot]" <143391972+dapla-bot[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 12:18:05 +0000 Subject: [PATCH 3/3] [GENERATE] Java classes from JSON Schema --- .../main/java/no/ssb/dapla/kuben/v1/Github.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/v1/Github.java b/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/v1/Github.java index 4db1805..a29eb60 100644 --- a/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/v1/Github.java +++ b/generated/java/dapla-kuben-resource-model/src/main/java/no/ssb/dapla/kuben/v1/Github.java @@ -12,6 +12,7 @@ import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ @@ -21,8 +22,14 @@ public class Github implements Serializable { + /** + * + * (Required) + * + */ @JsonProperty("iac_repo") @Valid + @NotNull private IacRepo iacRepo; @JsonIgnore @Valid @@ -45,11 +52,21 @@ public static Github.GithubBuilderBase builder() { return new Github.GithubBuilder(); } + /** + * + * (Required) + * + */ @JsonProperty("iac_repo") public IacRepo getIacRepo() { return iacRepo; } + /** + * + * (Required) + * + */ @JsonProperty("iac_repo") public void setIacRepo(IacRepo iacRepo) { this.iacRepo = iacRepo;