mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-20 11:51:17 +00:00
[core] Fix type warnings for Swagger documentation
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
e8d39c19a4
commit
120f88ecbd
3 changed files with 4 additions and 2 deletions
|
@ -77,6 +77,8 @@ func Register(args plugins.RegistrationArguments) error {
|
|||
{
|
||||
Description: "Time until the event is triggered (must be valid duration like 1h, 1h1m, 10s, ...)",
|
||||
Name: "schedule_in",
|
||||
Required: false,
|
||||
Type: "duration",
|
||||
},
|
||||
},
|
||||
RequiresWriteAuth: true,
|
||||
|
|
|
@ -45,7 +45,7 @@ func init() {
|
|||
Description: "Set the response status for failing checks",
|
||||
Name: "fail-status",
|
||||
Required: false,
|
||||
Type: "integer",
|
||||
Type: "int",
|
||||
},
|
||||
},
|
||||
RequiresWriteAuth: false,
|
||||
|
|
|
@ -140,7 +140,7 @@ func registerSwaggerRoute(route plugins.HTTPRouteRegistrationArgs) error {
|
|||
case "int", "int64":
|
||||
ps = spec.Int64Property()
|
||||
|
||||
case "string":
|
||||
case "duration", "string":
|
||||
ps = spec.StringProperty()
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue