From eadd6808d32c80092fbf734075690efb1947b9fb Mon Sep 17 00:00:00 2001 From: Maximilian Laue Date: Thu, 13 Jun 2024 22:25:10 +0200 Subject: [PATCH 1/2] feat: add minItems: 1 for subscription-types --- artifacts/camara-cloudevents/event-subscription-template.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artifacts/camara-cloudevents/event-subscription-template.yaml b/artifacts/camara-cloudevents/event-subscription-template.yaml index da60c107..b4b0edef 100644 --- a/artifacts/camara-cloudevents/event-subscription-template.yaml +++ b/artifacts/camara-cloudevents/event-subscription-template.yaml @@ -308,6 +308,7 @@ components: Note: for the Commonalities meta-release v0.4 we enforce to have only event type per subscription then for following meta-release use of array MUST be decided at API project level. type: array + minItems: 1 items: type: string config: @@ -487,6 +488,7 @@ components: Note: for the Commonalities meta-release v0.4 we enforce to have only event type per subscription then for following meta-release use of array MUST be decided at API project level. type: array + minItems: 1 items: type: string config: From e5b23605c29da977d0bd503f619d230d14d49342 Mon Sep 17 00:00:00 2001 From: Maximilian Laue Date: Mon, 17 Jun 2024 11:02:43 +0200 Subject: [PATCH 2/2] feat: add maxItems: 1 for subscription-types --- artifacts/camara-cloudevents/event-subscription-template.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artifacts/camara-cloudevents/event-subscription-template.yaml b/artifacts/camara-cloudevents/event-subscription-template.yaml index b4b0edef..4b439076 100644 --- a/artifacts/camara-cloudevents/event-subscription-template.yaml +++ b/artifacts/camara-cloudevents/event-subscription-template.yaml @@ -309,6 +309,7 @@ components: at API project level. type: array minItems: 1 + maxItems: 1 items: type: string config: @@ -489,6 +490,7 @@ components: at API project level. type: array minItems: 1 + maxItems: 1 items: type: string config: