Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions code/API_definitions/device-data-volume-subscriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@
$ref: "../common/CAMARA_event_common.yaml#/components/schemas/Protocol"
sink:
$ref: "#/components/schemas/Sink"
sinkCredential:
$ref: "../common/CAMARA_event_common.yaml#/components/schemas/SinkCredential"
types:
description: |
Camara Event types eligible to be delivered by this subscription for device data volume.
Expand Down Expand Up @@ -578,7 +580,7 @@
subscriptionId:
$ref: "../common/CAMARA_event_common.yaml#/components/schemas/SubscriptionId"

EventDataUsage50Percent:

Check notice on line 583 in code/API_definitions/device-data-volume-subscriptions.yaml

View workflow job for this annotation

GitHub Actions / validation / Validate

Component may be unused

[S-211] Potentially unused component has been detected. | Suggestion%3A Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: Event structure for data usage 50% threshold alerts
allOf:
- $ref: "#/components/schemas/ApiNotificationEvent"
Expand All @@ -587,7 +589,7 @@
data:
$ref: "#/components/schemas/BasicDeviceEventData"

EventDataUsage75Percent:

Check notice on line 592 in code/API_definitions/device-data-volume-subscriptions.yaml

View workflow job for this annotation

GitHub Actions / validation / Validate

Component may be unused

[S-211] Potentially unused component has been detected. | Suggestion%3A Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: Event structure for data usage 75% threshold alerts
allOf:
- $ref: "#/components/schemas/ApiNotificationEvent"
Expand All @@ -596,7 +598,7 @@
data:
$ref: "#/components/schemas/BasicDeviceEventData"

EventDataUsage90Percent:

Check notice on line 601 in code/API_definitions/device-data-volume-subscriptions.yaml

View workflow job for this annotation

GitHub Actions / validation / Validate

Component may be unused

[S-211] Potentially unused component has been detected. | Suggestion%3A Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: Event structure for data usage 90% threshold alerts
allOf:
- $ref: "#/components/schemas/ApiNotificationEvent"
Expand All @@ -605,7 +607,7 @@
data:
$ref: "#/components/schemas/BasicDeviceEventData"

EventDataUsageExceeded:

Check notice on line 610 in code/API_definitions/device-data-volume-subscriptions.yaml

View workflow job for this annotation

GitHub Actions / validation / Validate

Component may be unused

[S-211] Potentially unused component has been detected. | Suggestion%3A Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: Event structure for data usage exceeding the allocated volume
allOf:
- $ref: "#/components/schemas/ApiNotificationEvent"
Expand All @@ -614,7 +616,7 @@
data:
$ref: "#/components/schemas/BasicDeviceEventData"

EventSubscriptionStarted:

Check notice on line 619 in code/API_definitions/device-data-volume-subscriptions.yaml

View workflow job for this annotation

GitHub Actions / validation / Validate

Component may be unused

[S-211] Potentially unused component has been detected. | Suggestion%3A Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: Event structure for event subscription started
allOf:
- $ref: "#/components/schemas/SubscriptionLifecycleEvent"
Expand All @@ -628,7 +630,7 @@
$ref: "../common/CAMARA_common.yaml#/components/schemas/DeviceResponse"
- $ref: "../common/CAMARA_event_common.yaml#/components/schemas/SubscriptionStarted"

EventSubscriptionUpdated:

Check notice on line 633 in code/API_definitions/device-data-volume-subscriptions.yaml

View workflow job for this annotation

GitHub Actions / validation / Validate

Component may be unused

[S-211] Potentially unused component has been detected. | Suggestion%3A Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: Event structure for event subscription updated
allOf:
- $ref: "#/components/schemas/SubscriptionLifecycleEvent"
Expand All @@ -642,7 +644,7 @@
$ref: "../common/CAMARA_common.yaml#/components/schemas/DeviceResponse"
- $ref: "../common/CAMARA_event_common.yaml#/components/schemas/SubscriptionUpdated"

EventSubscriptionEnded:

Check notice on line 647 in code/API_definitions/device-data-volume-subscriptions.yaml

View workflow job for this annotation

GitHub Actions / validation / Validate

Component may be unused

[S-211] Potentially unused component has been detected. | Suggestion%3A Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: Event structure for event subscription ends
allOf:
- $ref: "#/components/schemas/SubscriptionLifecycleEvent"
Expand All @@ -664,7 +666,7 @@
pattern: ^https:\/\/.+$
example: "https://endpoint.example.com/sink"

HTTPSubscriptionRequest:

Check notice on line 669 in code/API_definitions/device-data-volume-subscriptions.yaml

View workflow job for this annotation

GitHub Actions / validation / Validate

Component may be unused

[S-211] Potentially unused component has been detected. | Suggestion%3A Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: Subscription request for HTTP-based event delivery.
allOf:
- $ref: "#/components/schemas/SubscriptionRequest"
Expand All @@ -673,7 +675,7 @@
protocolSettings:
$ref: "../common/CAMARA_event_common.yaml#/components/schemas/HTTPSettings"

HTTPSubscriptionResponse:

Check notice on line 678 in code/API_definitions/device-data-volume-subscriptions.yaml

View workflow job for this annotation

GitHub Actions / validation / Validate

Component may be unused

[S-211] Potentially unused component has been detected. | Suggestion%3A Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: Subscription resource returned for HTTP-based event delivery.
allOf:
- $ref: "#/components/schemas/Subscription"
Expand Down
Loading