Skip to content

Commit

Permalink
Remove the schema field overrides because the asyncapi/html-template …
Browse files Browse the repository at this point in the history
…no longer supports them per the spec
  • Loading branch information
christianrowlands committed Jan 26, 2024
1 parent a2deacd commit e0a9be2
Showing 1 changed file with 78 additions and 47 deletions.
125 changes: 78 additions & 47 deletions src/main/asyncapi/network_survey_messaging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be GsmRecord.'
example: GsmRecord
data:
Expand Down Expand Up @@ -580,10 +580,18 @@ components:
receiverSensitivity:
$ref: '#/components/schemas/receiverSensitivity'
mcc:
$ref: '#/components/schemas/mcc'
type: integer
format: int32
minimum: 0
description: 'Mobile Country Code, 3 digits.'
example: 310
mnc:
$ref: '#/components/schemas/mnc'
type: integer
format: int32
minimum: 0
description: >-
Mobile Network Code, used in conjunction with MCC (PLMN) to identify a
carrier, 2 to 3 digits.
example: 410
lac:
$ref: '#/components/schemas/lac'
Expand All @@ -596,11 +604,19 @@ components:
signalStrength:
$ref: '#/components/schemas/signalStrength'
ta:
$ref: '#/components/schemas/ta'
type: integer
format: int32
minimum: 0
maximum: 63
description: >-
Timing Advance, corresponding to the timing offset a mobile phone needs
to use when transmitting a signal to the tower.
example: 4
servingCell:
$ref: '#/components/schemas/servingCell'
provider:
$ref: '#/components/schemas/provider'
type: string
description: The company providing the cellular service.
example: ATT
slot:
$ref: '#/components/schemas/slot'
Expand All @@ -614,7 +630,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be CdmaRecord.'
example: CdmaRecord
data:
Expand Down Expand Up @@ -695,7 +711,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be UmtsRecord.'
example: UmtsRecord
data:
Expand Down Expand Up @@ -745,10 +761,18 @@ components:
receiverSensitivity:
$ref: '#/components/schemas/receiverSensitivity'
mcc:
$ref: '#/components/schemas/mcc'
type: integer
format: int32
minimum: 0
description: 'Mobile Country Code, 3 digits.'
example: 310
mnc:
$ref: '#/components/schemas/mnc'
type: integer
format: int32
minimum: 0
description: >-
Mobile Network Code, used in conjunction with MCC (PLMN) to identify a
carrier, 2 to 3 digits.
example: 260
lac:
$ref: '#/components/schemas/lac'
Expand All @@ -767,7 +791,8 @@ components:
servingCell:
$ref: '#/components/schemas/servingCell'
provider:
$ref: '#/components/schemas/provider'
type: string
description: The company providing the cellular service.
example: T-Mobile
slot:
$ref: '#/components/schemas/slot'
Expand All @@ -781,7 +806,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be LteRecord.'
example: LteRecord
data:
Expand Down Expand Up @@ -878,7 +903,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be NrRecord.'
example: NrRecord
data:
Expand Down Expand Up @@ -977,7 +1002,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be WifiBeaconRecord.'
example: WifiBeaconRecord
data:
Expand Down Expand Up @@ -1091,7 +1116,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be WifiProbeRequestRecord.'
example: WifiProbeRequestRecord
data:
Expand Down Expand Up @@ -1173,7 +1198,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be WifiDeauthenticationRecord.'
example: WifiDeauthenticationRecord
data:
Expand Down Expand Up @@ -1258,7 +1283,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be WifiOtaRecord.'
example: WifiOtaRecord
data:
Expand Down Expand Up @@ -1307,7 +1332,8 @@ components:
frameSubtype:
$ref: '#/components/schemas/frameSubtype'
pcapRecord:
$ref: '#/components/schemas/pcapRecord'
type: string
format: byte
description: >-
The raw 802.11 frame bytes encoded in base64. The bytes in this
field are the raw message bytes captured from the Over The Air
Expand All @@ -1318,6 +1344,7 @@ components:
header, followed by the 802.11 frame. Using this structure means
that Wireshark, tshark or any other tool that can read 802.11
pcap records can easily parse out the contents of this message.
example: aVwDZYj5DgBJAAAASQAAAAAAMABvCABAOsN7FAAAAAASDGwJwACroAAAAAN/ABAAAAAAAAAAAAAAAAAAAAAAAFQAZABszdbclR85lO2uZIceAQAgCAk4KYc=
bluetoothRecordPayload:
type: object
required:
Expand All @@ -1328,7 +1355,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be BluetoothRecord.'
example: BluetoothRecord
data:
Expand Down Expand Up @@ -1407,7 +1434,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be GnssRecord.'
example: GnssRecord
data:
Expand Down Expand Up @@ -1440,7 +1467,9 @@ components:
recordNumber:
$ref: '#/components/schemas/recordNumber'
groupNumber:
$ref: '#/components/schemas/groupNumber'
type: integer
format: int32
minimum: 1
description: >-
Starts at 1 and each subsequent scan should have its number
incremented by 1. Records with the same group number indicate
Expand Down Expand Up @@ -1495,7 +1524,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be EnergyDetection.'
example: EnergyDetection
data:
Expand Down Expand Up @@ -1565,7 +1594,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be SignalDetection.'
example: SignalDetection
data:
Expand Down Expand Up @@ -1639,7 +1668,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be DeviceStatus.'
example: DeviceStatus
data:
Expand Down Expand Up @@ -1694,7 +1723,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be PhoneState.'
example: PhoneState
data:
Expand Down Expand Up @@ -1753,7 +1782,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be WcdmaRrc.'
example: WcdmaRrc
data:
Expand Down Expand Up @@ -1796,7 +1825,11 @@ components:
receiverSensitivity:
$ref: '#/components/schemas/receiverSensitivity'
channelType:
$ref: '#/components/schemas/channelType'
type: string
description: >-
The channel type that this message was sent on. The channel type
represents the logical channel that the raw cellular message was sent
over.
example: BCCH_BCH
enum:
- UNKNOWN
Expand Down Expand Up @@ -1874,7 +1907,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be UmtsNas.'
example: UmtsNas
data:
Expand Down Expand Up @@ -1927,7 +1960,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be LteRrc.'
example: LteRrc
data:
Expand Down Expand Up @@ -1970,7 +2003,11 @@ components:
receiverSensitivity:
$ref: '#/components/schemas/receiverSensitivity'
channelType:
$ref: '#/components/schemas/channelType'
type: string
description: >-
The channel type that this message was sent on. The channel type
represents the logical channel that the raw cellular message was sent
over.
example: BCCH_BCH
enum:
- UNKNOWN
Expand Down Expand Up @@ -2009,7 +2046,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be LteNas.'
example: LteNas
data:
Expand Down Expand Up @@ -2052,7 +2089,11 @@ components:
receiverSensitivity:
$ref: '#/components/schemas/receiverSensitivity'
channelType:
$ref: '#/components/schemas/channelType'
type: string
description: >-
The channel type that this message was sent on. The channel type
represents the logical channel that the raw cellular message was sent
over.
example: PLAIN
enum:
- UNKNOWN
Expand All @@ -2070,7 +2111,7 @@ components:
version:
$ref: '#/components/schemas/version'
messageType:
$ref: '#/components/schemas/messageType'
type: string
description: 'The type of message, must be GsmSignaling.'
example: GsmSignaling
data:
Expand Down Expand Up @@ -2113,7 +2154,11 @@ components:
receiverSensitivity:
$ref: '#/components/schemas/receiverSensitivity'
channelType:
$ref: '#/components/schemas/channelType'
type: string
description: >-
The channel type that this message was sent on. The channel type
represents the logical channel that the raw cellular message was sent
over.
example: BCCH
enum:
- UNKNOWN
Expand Down Expand Up @@ -2142,11 +2187,6 @@ components:
The version number of the Network Survey Messaging API that this message
is based off of.
example: 0.15.0
messageType:
type: string
description: >-
The type of this message. This value must match the message name or the
message will not be interpreted correctly.
deviceSerialNumber:
type: string
description: >-
Expand Down Expand Up @@ -2369,15 +2409,6 @@ components:
Base Station Identity Code, consists of NCC and BCC, valid range 0-63
(in octal). For example, a BSIC of 38 maps to an NCC of 4 and BCC of 6.
example: 25
ta:
type: integer
format: int32
minimum: 0
maximum: 63
description: >-
Timing Advance, corresponding to the timing offset a mobile phone needs
to use when transmitting a signal to the tower.
example: 4
sid:
type: integer
format: int32
Expand Down

0 comments on commit e0a9be2

Please sign in to comment.