[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, ...)",
Name: "schedule_in",
Required: false,
Type: "duration",
},
},
RequiresWriteAuth: true,

View file

@ -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,

View file

@ -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: