Skip to content

Commit

Permalink
Remove whitespace (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
elazzarin authored May 30, 2023
1 parent 8af7536 commit 1a5811f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions pkg/controller_handlers/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
)

type ProvisionBody struct {
DeviceHostName string `json:"deviceHostName" example:"[email protected]"` // user@ip
Permissions []string `json:"permissions" example:"temperature, humidity"` // ["temperature", "humidity"]
BrokerIp string `json:"brokerIp" example:"192.168.0.2"` // 127.0.0.1
BrokerUsername string `json:"brokerUsername" example:"admin:a1998e"` // brokerUser:deviceID
BrokerPassword string `json:"brokerPassword" example:"admin"` // brokerPass
DeviceHostName string `json:"deviceHostName" example:"[email protected]"` // user@ip
Permissions []string `json:"permissions" example:"temperature,humidity"` // ["temperature", "humidity"]
BrokerIp string `json:"brokerIp" example:"192.168.0.2"` // 127.0.0.1
BrokerUsername string `json:"brokerUsername" example:"admin:a1998e"` // brokerUser:deviceID
BrokerPassword string `json:"brokerPassword" example:"admin"` // brokerPass
}

func ProvisionBodyIsValid(body ProvisionBody) bool {
Expand Down
2 changes: 1 addition & 1 deletion src/janus-controller/service/docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/janus-controller/service/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
},
"example": [
"temperature",
" humidity"
"humidity"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/janus-controller/service/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ definitions:
description: '["temperature", "humidity"]'
example:
- temperature
- ' humidity'
- humidity
items:
type: string
type: array
Expand Down

0 comments on commit 1a5811f

Please sign in to comment.