Skip to content

Commit

Permalink
Update Twinguard-local-openapi-v3.yml
Browse files Browse the repository at this point in the history
Fix wrong enum values and add missing comfort-zone type.
  • Loading branch information
SteffenMangold authored and sebastianharder committed Jul 3, 2024
1 parent dc17a66 commit 71e39c9
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions openapi/Twinguard-local-openapi-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,24 @@ components:
example:
- AirQualityLevel
- SmokeDetectorCheck
ComfortZone:
type: object
description: ComfortZone of Twinguard
properties:
name:
type: string
custom:
type: boolean
minTemperature:
type: number
maxTemperature:
type: number
minHumidity:
type: number
maxHumidity:
type: number
maxPurity:
type: number
AirQualityLevelServiceStates:
type: object
description: AirQualityLevelService states of Twinguard
Expand All @@ -201,7 +219,9 @@ components:
purity:
type: number
purityRating:
type: string
$ref: '#/components/schemas/RatingState'
comfortZone:
$ref: '#/components/schemas/ComfortZone'
AirQualityLevelService:
type: object
properties:
Expand All @@ -211,7 +231,7 @@ components:
description: The type of the Object.
id:
type: string
enum: [deviceServiceId]
enum: [AirQualityLevel]
description: "A single fully qualified identifier of the Service of a Device."
deviceId:
type: string
Expand Down Expand Up @@ -240,7 +260,7 @@ components:
description: The type of the Object.
id:
type: string
enum: [deviceServiceId]
enum: [SmokeDetectorCheck]
description: "A single fully qualified identifier of the Service of a Device."
deviceId:
type: string
Expand Down

0 comments on commit 71e39c9

Please sign in to comment.