Skip to content

Clarification on using multiple event types#477

Merged
rartych merged 7 commits intocamaraproject:mainfrom
rartych:multievent-subs
Jun 11, 2025
Merged

Clarification on using multiple event types#477
rartych merged 7 commits intocamaraproject:mainfrom
rartych:multievent-subs

Conversation

@rartych
Copy link
Contributor

@rartych rartych commented Jun 4, 2025

What type of PR is this?

  • correction
  • enhancement/feature

What this PR does / why we need it:

Clarification on using multiple event types in a single subscriptions.
Error 422 MULTIEVENT_COMBINATION_TEMPORARILY_NOT_SUPPORTED added to the event-subscription-template.yaml

Which issue(s) this PR fixes:

Fixes #460

Does this PR introduce a breaking change?

  • Yes
  • No

Special notes for reviewers:

Changelog input

Clarification on using multiple event types

Copy link
Collaborator

@bigludo7 bigludo7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

PedroDiez
PedroDiez previously approved these changes Jun 5, 2025
Copy link
Contributor

@PedroDiez PedroDiez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

patrice-conil
patrice-conil previously approved these changes Jun 5, 2025
Copy link
Contributor

@patrice-conil patrice-conil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rartych rartych added the Fall25 label Jun 5, 2025
@rartych rartych dismissed stale reviews from patrice-conil and PedroDiez via c04a39a June 10, 2025 08:11
@rartych
Copy link
Contributor Author

rartych commented Jun 10, 2025

Conflict resolved after changes in #475

| types | SubscriptionEventType | Type of event subscribed. This attribute **must** be present in the `POST` request. It is required by API project to provide an enum for this attribute. The event type must follow the format: `org.camaraproject.<api-name>.<event-version>.<event-name>` - see chapter [2.3. Event versioning](#23-event-versioning) - Note: An array of types could be passed **but as of now only one value MUST be passed**. Use of multiple value will be open later at API level. | mandatory |
| sink | string | The URL, to which event notifications shall be sent - `format: uri` should be used to require a string that is compliant with [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986). The URI-scheme shall be set according to the definition of the `protocol` value, e.g. the URI-scheme is `https` when `HTTP`is the value of the `protocol` property. The [security considerations](43#notifications-security-considerations) should be followed. | mandatory |
| sinkCredential | object | Sink credential provides authorization information necessary to enable delivery of events to a target. In order to be updated in future this object is polymorphic. See detail below. To protect the notification endpoint providing sinkCredential is RECOMMENDED. <br> The sinkCredential must **not** be present in `POST` and `GET` responses. | optional |
| types | SubscriptionEventType | Type of event subscribed. This attribute **must** be present in the `POST` request. It is rquired by API project to provide an enum for this attributee. The event type must follow the format: `org.camaraproject.<api-name>.<event-version>.<event-name>` - see chapter [2.3. Event versioning](#23-event-versioning) - Note: An array of types could be passed. The decision to use multiple event types in a single subscription will be made at the API level. | mandatory |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 small miscues:
It is required by API project to provide an enum for this attribute

Copy link
Contributor

@PedroDiez PedroDiez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rartych rartych merged commit b334dba into camaraproject:main Jun 11, 2025
1 check passed
@rartych rartych deleted the multievent-subs branch July 17, 2025 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Arrays of types (SubscriptionEventType) are still restricted to one within CAMARA-API-Event-Subscription-and-Notification-Guide.md?

4 participants