Skip to content

Commit 62f59d7

Browse files
authored
Merge pull request #105 from regulaforensics/update/device-info-model
[SP-18833] Add nullable property
2 parents b4bc387 + 51a5942 commit 62f59d7

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

healthcheck.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ paths:
1111
- healthcheck
1212
responses:
1313
200:
14-
description: "Device info"
14+
description: "Device info."
1515
content:
1616
application/json:
1717
schema:
@@ -26,26 +26,36 @@ paths:
2626
- healthcheck
2727
responses:
2828
200:
29-
description: "License is valid"
29+
description: "The license is valid."
3030
400:
31-
description: "License is not valid"
31+
description: "The license is not valid."
3232

3333
components:
3434
schemas:
3535
DeviceInfo:
3636
type: object
37+
required: [app, licenseId, licenseSerial, licenseValidUntil, version]
3738
properties:
3839
app:
40+
description: Application name.
3941
type: string
4042
licenseId:
43+
description: Unique license identifier.
4144
type: string
45+
nullable: true
4246
licenseSerial:
47+
description: License serial number.
4348
type: string
49+
nullable: true
4450
licenseValidUntil:
51+
description: License validity date.
4552
type: string
4653
format: date-time
54+
nullable: true
4755
version:
56+
description: Product version.
4857
type: string
58+
nullable: true
4959
example:
5060
app: "Regula Face Recognition Web API"
5161
licenseId: "4D43A2AF-E321-496C-9A4E-5A8F3D26DF0E"

0 commit comments

Comments
 (0)