Problem description
It's required to set the types-attribute in the subscription-request.
But it's not defined that minimum one item has to be set.
But without even one type a subscription does not make sense.
Also, at least for this the upcoming meta-release v0.4.0, we should limit the maximum as well to 1.
SubscriptionRequest:
description: The request for creating a event-type event subscription
type: object
required:
- sink
- protocol
- config
- types
properties:
#...
types:
description: |
Camara Event types eligible to be delivered by this subscription.
Note: As of now we enforce to have only event type per subscription.
type: array
items:
$ref: "#/components/schemas/SubscriptionEventType"
#...
Expected behavior
SubscriptionRequest:
description: The request for creating a event-type event subscription
type: object
required:
- sink
- protocol
- config
- types
properties:
#...
types:
description: |
Camara Event types eligible to be delivered by this subscription.
Note: As of now we enforce to have only event type per subscription.
type: array
minItems: 1
maxItems: 1
items:
$ref: "#/components/schemas/SubscriptionEventType"
#...
Problem description It's required to set the
types
-attribute in the subscription-request. But it's not defined that minimum one item has to be set. But without even one type a subscription does not make sense.Also, at least for this the upcoming meta-release v0.4.0, we should limit the maximum as well to
1
.Expected behavior
Source https://github.com/camaraproject/Commonalities/blob/main/artifacts/camara-cloudevents/event-subscription-template.yaml#L305-L312