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
17 changes: 11 additions & 6 deletions code/API_definitions/device-roaming-status-subscriptions.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
openapi: 3.0.3

Check failure on line 1 in code/API_definitions/device-roaming-status-subscriptions.yaml

View workflow job for this annotation

GitHub Actions / validation / Validate

$ref target does not exist

[S-229] '#/components/schemas/ConfigBase' does not exist @ 'code/common/CAMARA_event_common.yaml' | Suggestion: The $ref points to a JSON pointer that does not exist in the target file. Check the pointer name against the target's components section — a schema renamed or removed in a newer Commonalities release is the usual cause. Fix the reference in this API definition; do not edit code/common/.
info:
title: Device Roaming Status Subscriptions
description: |
Expand Down Expand Up @@ -424,21 +424,26 @@
$ref: "../common/CAMARA_event_common.yaml#/components/schemas/SubscriptionId"

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

ConfigLocal:
Config:
description: Config schema allowing for device to be specified as part of subscription detail
allOf:
- $ref: "../common/CAMARA_event_common.yaml#/components/schemas/Config"
- $ref: "../common/CAMARA_event_common.yaml#/components/schemas/ConfigBase"
- type: object
properties:
subscriptionDetail:
$ref: "#/components/schemas/CreateSubscriptionDetailLocal"
$ref: "#/components/schemas/CreateSubscriptionDetail"
initialEvent:
description: |
Set to `true` by API consumer if consumer wants to get an event as soon as the subscription is created and current situation reflects event request.
Example: Consumer request Roaming event. If consumer sets initialEvent to true and device is in roaming situation, an event is triggered
type: boolean

ApiEventType:
type: string
Expand Down Expand Up @@ -512,7 +517,7 @@
items:
$ref: "#/components/schemas/ApiEventType"
config:
$ref: '#/components/schemas/ConfigLocal'
$ref: '#/components/schemas/Config'
id:
$ref: "../common/CAMARA_event_common.yaml#/components/schemas/SubscriptionId"
startsAt:
Expand Down Expand Up @@ -586,7 +591,7 @@
items:
$ref: "#/components/schemas/ApiEventType"
config:
$ref: "#/components/schemas/ConfigLocal"
$ref: "#/components/schemas/Config"
discriminator:
propertyName: protocol
mapping:
Expand Down
Loading