Skip to content

Conversation

@PedroDiez
Copy link
Contributor

What type of PR is this?

  • enhancement/feature
  • documentation

What this PR does / why we need it:

This PR address some guidelines with regards to scenarios where API response is provided asynchronously. It is stated that the response model does NOT have to follow CAMARA cloudevents-based event notification model as the conclusion from Issue #533.

Which issue(s) this PR fixes:

Fixes #533

Does this PR introduce a breaking change?

  • Yes
  • No

Special notes for reviewers:

Changelog input

 Clarifications for asynchronous responses

Additional documentation

This section can be blank.

docs

@PedroDiez PedroDiez self-assigned this Jan 15, 2026
@PedroDiez PedroDiez added documentation Improvements or additions to documentation enhancement New feature or request Spring26 Scope of Spring26 (H1-2026) meta-release labels Jan 15, 2026

An asynchronous response is not really an event. An event is something that can happen or not, once or several times and it is the occurrence of the event that carries the main information, whereas an asynchronous response represents the metainformation carried over in the same format as it would be a synchronous response and will happen once and only once.

This is the rationale to NOT use [CAMARA cloudevents-based model for event notification](./CAMARA-API-Event-Subscription-and-Notification-Guide.md#3-event-notification) for these kind of scenarios but to use the same response model as in an analogous synchronous scenario.
Copy link
Collaborator

Choose a reason for hiding this comment

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

'same response model' -> may be worth stating explicitly that an asychronous response would typically involve a different response status code (202 Acceptedfor the non-error scenarios )

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Making some updates. Also considering offline proposal by @rartych

$ref: "#/components/responses/<schema-name>"
```

##### 5.7.6.1 Asynchronous responses
Copy link
Contributor

Choose a reason for hiding this comment

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

We have 5.7.6.1 section proposed in #567
We need to decide on the sequence and resolve the conflict.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tentatively i assign 5.7.6.2 in this PR

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request Spring26 Scope of Spring26 (H1-2026) meta-release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarifications for asynchronous response in callback

4 participants