Closed maxl2287 closed 4 months ago
Referring to the "subscription end" event outlined in the API guidelines as
Specific event notification type "subscription-ends" is defined to inform listener about subscription termination. It is used when the subscription expire time (required by the requester) has been reached or if the API server has to stop sending notification prematurely. For this specific event, the data must feature terminationReason attribute.
So I believe , it aligns well with "subscription-ends," signifying that the "subscriptionExpireTime" should always be provided by the requester to make it effect.
Hi @sachinvodafone,
I reference now to the discussion with @bigludo7: https://github.com/camaraproject/DeviceStatus/discussions/105
What do you think about that? Should it still be optional?
I do have some confusion over "subscriptionExpireTime" and "expiresAt" so created a discussion 147
Problem description
In the note for a subscription-ends event the
subscriptionExpireTime
is declared as "required by the requester". But this request-parameter in POST /subscriptions is not mandatory.Expected behavior Remove "required by the requester".
Alternative solution Add
subscriptionExpireTime
as mandatory parameterAdditional context
subscriptionExpireTime is optional