[core] Fix type warnings for Swagger documentation

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-03-24 21:02:30 +01:00
parent e8d39c19a4
commit 120f88ecbd
Signed by: luzifer
GPG Key ID: D91C3E91E4CAD6F5
3 changed files with 4 additions and 2 deletions

View File

@ -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, ...)", Description: "Time until the event is triggered (must be valid duration like 1h, 1h1m, 10s, ...)",
Name: "schedule_in", Name: "schedule_in",
Required: false,
Type: "duration",
}, },
}, },
RequiresWriteAuth: true, RequiresWriteAuth: true,

View File

@ -45,7 +45,7 @@ func init() {
Description: "Set the response status for failing checks", Description: "Set the response status for failing checks",
Name: "fail-status", Name: "fail-status",
Required: false, Required: false,
Type: "integer", Type: "int",
}, },
}, },
RequiresWriteAuth: false, RequiresWriteAuth: false,

View File

@ -140,7 +140,7 @@ func registerSwaggerRoute(route plugins.HTTPRouteRegistrationArgs) error {
case "int", "int64": case "int", "int64":
ps = spec.Int64Property() ps = spec.Int64Property()
case "string": case "duration", "string":
ps = spec.StringProperty() ps = spec.StringProperty()
default: default: