Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 8 additions & 2 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -7308,6 +7308,7 @@
"sn": {
"type": "string",
"nullable": true,
"pattern": "^[a-zA-Z0-9_-]+$",
"description": "Serial number of the device."
},
"display_name": {
Expand All @@ -7320,6 +7321,7 @@
"price_id": {
"type": "string",
"nullable": true,
"pattern": "^[a-zA-Z0-9_-]+$",
"description": "Stripe price ID for billing purposes."
},
"status": {
Expand Down Expand Up @@ -7447,6 +7449,7 @@
},
"sn": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]+$",
"description": "Serial number of the device. This field is required when creating a device."
}
}
Expand All @@ -7469,7 +7472,8 @@
},
"sn": {
"type": "string",
"nullable": true
"nullable": true,
"pattern": "^[a-zA-Z0-9_-]+$"
},
"display_name": {
"type": "string",
Expand All @@ -7479,7 +7483,8 @@
},
"price_id": {
"type": "string",
"nullable": true
"nullable": true,
"pattern": "^[a-zA-Z0-9_-]+$"
},
"status": {
"$ref": "#/components/schemas/DeviceStatus"
Expand All @@ -7500,6 +7505,7 @@
"properties": {
"sn": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-]+$",
"description": "Device serial number",
"example": "SFVA78RABZ12345678"
},
Expand Down
6 changes: 6 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5776,6 +5776,7 @@ components:
sn:
type: string
nullable: true
pattern: ^[a-zA-Z0-9_-]+$
description: Serial number of the device.
display_name:
type: string
Expand All @@ -5786,6 +5787,7 @@ components:
price_id:
type: string
nullable: true
pattern: ^[a-zA-Z0-9_-]+$
description: Stripe price ID for billing purposes.
status:
$ref: '#/components/schemas/DeviceStatus'
Expand Down Expand Up @@ -5940,6 +5942,7 @@ components:
'
sn:
type: string
pattern: ^[a-zA-Z0-9_-]+$
description: Serial number of the device. This field is required when creating
a device.
DeviceUpdate:
Expand All @@ -5962,6 +5965,7 @@ components:
sn:
type: string
nullable: true
pattern: ^[a-zA-Z0-9_-]+$
display_name:
type: string
nullable: true
Expand All @@ -5970,6 +5974,7 @@ components:
price_id:
type: string
nullable: true
pattern: ^[a-zA-Z0-9_-]+$
status:
$ref: '#/components/schemas/DeviceStatus'
metadata:
Expand All @@ -5982,6 +5987,7 @@ components:
properties:
sn:
type: string
pattern: ^[a-zA-Z0-9_-]+$
description: Device serial number
example: SFVA78RABZ12345678
model_name:
Expand Down
Loading