forked from camaraproject/Commonalities
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update CAMARA_common.yaml: add Device headers, fix address
- Loading branch information
Showing
1 changed file
with
30 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,31 @@ info: | |
version: 0.4.0 | ||
paths: {} | ||
components: | ||
parameters: | ||
IPv4-Address: | ||
in: header | ||
name: IPv4-Address | ||
required: false | ||
schema: | ||
$ref: "#/components/schemas/DeviceIpv4Address" | ||
IPv6-Address: | ||
in: header | ||
name: IPv6-Address | ||
required: false | ||
schema: | ||
$ref: "#/components/schemas/DeviceIpv6Address" | ||
Phone-Number: | ||
in: header | ||
name: Phone-Number | ||
required: false | ||
schema: | ||
$ref: "#/components/schemas/PhoneNumber" | ||
Network-Access-Identifier: | ||
in: header | ||
name: Network-Access-Identifier | ||
required: false | ||
schema: | ||
$ref: "#/components/schemas/NetworkAccessIdentifier" | ||
schemas: | ||
TimePeriod: | ||
properties: | ||
|
@@ -55,7 +80,7 @@ components: | |
networkAccessIdentifier: | ||
$ref: "#/components/schemas/NetworkAccessIdentifier" | ||
ipv4Address: | ||
$ref: "#/components/schemas/DeviceIpv4Addr" | ||
$ref: "#/components/schemas/DeviceIpv4Address" | ||
ipv6Address: | ||
$ref: "#/components/schemas/DeviceIpv6Address" | ||
minProperties: 1 | ||
|
@@ -71,7 +96,7 @@ components: | |
type: string | ||
example: "[email protected]" | ||
|
||
DeviceIpv4Addr: | ||
DeviceIpv4Address: | ||
type: object | ||
description: | | ||
The device should be identified by either the public (observed) IP address and port as seen by the application server, or the private (local) and any public (observed) IP addresses in use by the device (this information can be obtained by various means, for example from some DNS servers). | ||
|
@@ -83,9 +108,9 @@ components: | |
In all cases, publicAddress must be specified, along with at least one of either privateAddress or publicPort, dependent upon which is known. In general, mobile devices cannot be identified by their public IPv4 address alone. | ||
properties: | ||
publicAddress: | ||
$ref: "#/components/schemas/SingleIpv4Addr" | ||
$ref: "#/components/schemas/SingleIpv4Address" | ||
privateAddress: | ||
$ref: "#/components/schemas/SingleIpv4Addr" | ||
$ref: "#/components/schemas/SingleIpv4Address" | ||
publicPort: | ||
$ref: "#/components/schemas/Port" | ||
anyOf: | ||
|
@@ -95,7 +120,7 @@ components: | |
publicAddress: "84.125.93.10" | ||
publicPort: 59765 | ||
|
||
SingleIpv4Addr: | ||
SingleIpv4Address: | ||
description: A single IPv4 address with no subnet mask | ||
type: string | ||
format: ipv4 | ||
|