Allow rollershutter to close to state 0
https://goswagger.io/use/models/schemas.html#nullability
This commit is contained in:
parent
b3985f8b9b
commit
05fc283d06
2
move.go
2
move.go
@ -17,7 +17,7 @@ func Move(state *State, shutters []string, position int64) {
|
|||||||
m := &models.ModulePercentage{
|
m := &models.ModulePercentage{
|
||||||
Bridge: state.ModuleStatus[state.ModuleForName[x]].Bridge,
|
Bridge: state.ModuleStatus[state.ModuleForName[x]].Bridge,
|
||||||
ID: state.ModuleForName[x],
|
ID: state.ModuleForName[x],
|
||||||
TargetPosition: position,
|
TargetPosition: swag.Int64(position),
|
||||||
}
|
}
|
||||||
updates = append(updates, m)
|
updates = append(updates, m)
|
||||||
}
|
}
|
||||||
|
@ -327,6 +327,7 @@ definitions:
|
|||||||
target_position:
|
target_position:
|
||||||
description: percentage open
|
description: percentage open
|
||||||
type: integer
|
type: integer
|
||||||
|
x-nullable: true
|
||||||
securityDefinitions:
|
securityDefinitions:
|
||||||
OAuth2:
|
OAuth2:
|
||||||
type: oauth2
|
type: oauth2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user