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
Original file line number Diff line number Diff line change
Expand Up @@ -400,21 +400,21 @@
$ref: "../common/CAMARA_event_common.yaml#/components/schemas/SubscriptionId"

schemas:
CreateSubscriptionDetail:
CreateSubscriptionDetailLocal:
description: The detail of the requested event subscription.
type: object
properties:
device:
$ref: "../common/CAMARA_common.yaml#/components/schemas/Device"

Config2:
ConfigLocal:
description: Config schema allowing for device to be specified as part of subscription detail
allOf:
- $ref: "../common/CAMARA_event_common.yaml#/components/schemas/Config"
- type: object
properties:
subscriptionDetail:
$ref: "#/components/schemas/CreateSubscriptionDetail"
$ref: "#/components/schemas/CreateSubscriptionDetailLocal"

ApiEventType:
type: string
Expand Down Expand Up @@ -484,7 +484,7 @@
items:
$ref: "#/components/schemas/ApiEventType"
config:
$ref: "#/components/schemas/Config2"
$ref: "#/components/schemas/ConfigLocal"
id:
$ref: "../common/CAMARA_event_common.yaml#/components/schemas/SubscriptionId"
startsAt:
Expand Down Expand Up @@ -561,7 +561,7 @@
items:
$ref: "#/components/schemas/ApiEventType"
config:
$ref: "#/components/schemas/Config2"
$ref: "#/components/schemas/ConfigLocal"
discriminator:
propertyName: protocol
mapping:
Expand Down Expand Up @@ -631,7 +631,7 @@
- org.camaraproject.device-reachability-status-subscriptions.v0.subscription-updated
- org.camaraproject.device-reachability-status-subscriptions.v0.subscription-ended

EventReachabilityData:

Check notice on line 634 in code/API_definitions/device-reachability-status-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: Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: event structure for reachability data usage
allOf:
- $ref: "#/components/schemas/ApiNotificationEvent"
Expand All @@ -640,7 +640,7 @@
data:
$ref: "#/components/schemas/ReachabilityDataSmsDisconnected"

EventReachabilitySms:

Check notice on line 643 in code/API_definitions/device-reachability-status-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: Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: event structure for reachability SMS usage
allOf:
- $ref: "#/components/schemas/ApiNotificationEvent"
Expand All @@ -649,7 +649,7 @@
data:
$ref: "#/components/schemas/ReachabilityDataSmsDisconnected"

EventReachabilityDisconnected:

Check notice on line 652 in code/API_definitions/device-reachability-status-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: Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: event structure for disconnection
allOf:
- $ref: "#/components/schemas/ApiNotificationEvent"
Expand All @@ -669,7 +669,7 @@
subscriptionId:
$ref: "../common/CAMARA_event_common.yaml#/components/schemas/SubscriptionId"

EventSubscriptionStarted:

Check notice on line 672 in code/API_definitions/device-reachability-status-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: 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 @@ -683,7 +683,7 @@
$ref: "../common/CAMARA_common.yaml#/components/schemas/DeviceResponse"
- $ref: "../common/CAMARA_event_common.yaml#/components/schemas/SubscriptionStarted"

EventSubscriptionUpdated:

Check notice on line 686 in code/API_definitions/device-reachability-status-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: 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 @@ -697,7 +697,7 @@
$ref: "../common/CAMARA_common.yaml#/components/schemas/DeviceResponse"
- $ref: "../common/CAMARA_event_common.yaml#/components/schemas/SubscriptionUpdated"

EventSubscriptionEnded:

Check notice on line 700 in code/API_definitions/device-reachability-status-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: Spectral does not follow discriminator mappings — verify the schema is truly unused.
description: event structure for event subscription ended
allOf:
- $ref: "#/components/schemas/SubscriptionLifecycleEvent"
Expand All @@ -719,7 +719,7 @@
pattern: ^https:\/\/.+$
example: "https://endpoint.example.com/sink"

HTTPSubscriptionRequest:

Check notice on line 722 in code/API_definitions/device-reachability-status-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: 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 @@ -728,7 +728,7 @@
protocolSettings:
$ref: "../common/CAMARA_event_common.yaml#/components/schemas/HTTPSettings"

HTTPSubscriptionResponse:

Check notice on line 731 in code/API_definitions/device-reachability-status-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: 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