Update sim-swap-notification-subscription.yaml#111
Conversation
Align with CloudEvents model for subscription
🦙 MegaLinter status: ✅ SUCCESS
See detailed report in MegaLinter reports |
Fix MegaLinter
Fixes MegaLinter
Fix MegaLinter issue
Fix MegaLinter
Fix MegaLinter
|
💯 thanks @maxl2287 for your review ! |
I added an issue for this behaviour / bug: |
Updated after https://github.com/maxl2287 review.
fix megaLinter issues
|
Fixed all points raised by @maxl2287 (I hope so) |
Updated following @gregory1g proposal
Added quote for phoneNumber in the examples.
|
LGTM 🎉 |
fixed DEACTIVE to INACTIVE
| security: | ||
| - openId: | ||
| - sim-swap:subscriptions:create | ||
| - sim-swap-subscriptions:org.camaraproject.sim-swap-subscriptions.v0.swapped:read |
There was a problem hiding this comment.
For creating a subscription we should use here create as an action.
| security: | ||
| - openId: | ||
| - sim-swap:subscriptions:read | ||
| - sim-swap-subscriptions:read |
There was a problem hiding this comment.
sim-swap-subscriptions:org.camaraproject.sim-swap-subscriptions.v0.swapped:read
There was a problem hiding this comment.
Hummm - I dont think so regarding the template yaml for the GET operation which is on the subscription itself and not the event.
| security: | ||
| - openId: | ||
| - sim-swap:subscriptions:read | ||
| - sim-swap-subscriptions:read |
There was a problem hiding this comment.
sim-swap-subscriptions:org.camaraproject.sim-swap-subscriptions.v0.swapped:read
There was a problem hiding this comment.
Hummm - I dont think so regarding the template yaml for the GET operation which is on the subscription itself and not the event.
| security: | ||
| - openId: | ||
| - sim-swap:subscriptions:delete | ||
| - sim-swap-subscriptions:delete |
There was a problem hiding this comment.
sim-swap-subscriptions:org.camaraproject.sim-swap-subscriptions.v0.swapped:delete
There was a problem hiding this comment.
Hummm - I dont think so regarding the template yaml for the DELETE operation which is on the subscription itself and not the event.
| - Sim Swap Notification Subscription | ||
| summary: 'Delete a sim swap event subscription' | ||
| operationId: deleteSubscription | ||
| description: delete a given event subscription. |
There was a problem hiding this comment.
two whitespaces between a given
| types: | ||
| description: | | ||
| Camara Event types eligible for subscription: | ||
| - org.camaraproject.sim-swap-subscriptions.v0.swapped: receive a notification when a sim swap is performed on the line. | ||
| type: array | ||
| example: | ||
| - "org.camaraproject.sim-swap-subscriptions.v0.swapped" | ||
| items: | ||
| type: string |
There was a problem hiding this comment.
I recommend adding here like for DeviceLocation and DeviceStatus the minItems and maxItems and set them to 1
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"
Also think about using here the enum, even for the single one.
It enforces then to avoid requesting with unsupported event-types here.
| types: | ||
| description: | | ||
| Camara Event types eligible for subscription: | ||
| - org.camaraproject.sim-swap-subscriptions.v0.swapped: receive a notification when a sim swap is performed on the line. | ||
| 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 | ||
| items: | ||
| type: string |
There was a problem hiding this comment.
The same like for the request.
Extracting the types into an own component and setting the min and maxItems
…-subscriptions.yaml Updated following Max review
You're right - done ! |
|
@maxl2287 I've considered all your comments. |
|
@maxl2287 @gregory1g @fernandopradocabrillo Gentle reminder for this one. As it is opened & discussed for long time are they still pending issue on your side preventing merging? |
|
LGTM thanks @bigludo7 👌🏻 |
Co-authored-by: Fernando Prado Cabrillo <fernando.pradocabrillo@telefonica.com>
|
Thanks for the work on the subscriptios @bigludo7 ! |


What type of PR is this?
Add one of the following kinds:
What this PR does / why we need it:
Modify sim-swap-notification-subscription.yaml accordingly to the new format defined in Commonalities.
This format is aligned with CloudEvents.
Which issue(s) this PR fixes:
Fixes #108
#113
Special notes for reviewers:
Changelog input
Additional documentation
This section can be blank.