Skip to content

Commit d939c72

Browse files
committed
Document allowed text/plain MIME type for device log content.
1 parent 223871c commit d939c72

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

reference/blob.v1.yaml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ paths:
5555
post:
5656
operationId: UploadDeviceLogs
5757
summary: Upload new device logs as json
58-
description: Uploads a new device logs json to the user's account. The `Digest` header must represent the MD5 hash of the json data content.
58+
description: Uploads new device logs to the user's account. The `Digest` header must represent the MD5 hash of the data.
5959
parameters:
6060
- $ref: ./common/parameters/digestmd5.v1.yaml
6161
- $ref: ./blob/parameters/logs-start-at.v1.yaml
@@ -66,9 +66,10 @@ paths:
6666
content:
6767
application/json:
6868
schema:
69-
type: array
70-
items:
71-
$ref: ./blob/models/device-log-content.v1.yaml
69+
$ref: ./blob/models/device-log-content-list.v1.yaml
70+
text/plain:
71+
schema:
72+
$ref: ./blob/models/device-log-content-plain.v1.yaml
7273
responses:
7374
'201':
7475
$ref: '#/components/responses/DeviceLogsMetadata'
@@ -310,8 +311,11 @@ components:
310311
application/json:
311312
schema:
312313
$ref: ./blob/models/device-log-content-list.v1.yaml
314+
text/plain:
315+
schema:
316+
$ref: ./blob/models/device-log-content-plain.v1.yaml
313317
DeviceLogsMetadata:
314-
description: Device logs metadata
318+
description: Device logs metadata. This is information about the log data, but is not the actual log data.
315319
content:
316320
application/json:
317321
schema:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
title: Unstructured device log content
2+
description: >-
3+
Device log entry.
4+
type: string
5+
example: >-
6+
Any kind of arbritrary log data sent by a device. Establishing
7+
connection... Connection established. Sending logs...

0 commit comments

Comments
 (0)