diff --git a/internal/apimodules/customevent/customevent.go b/internal/apimodules/customevent/customevent.go index 6127ed5..92be660 100644 --- a/internal/apimodules/customevent/customevent.go +++ b/internal/apimodules/customevent/customevent.go @@ -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, diff --git a/status.go b/status.go index af8e859..2474a40 100644 --- a/status.go +++ b/status.go @@ -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, diff --git a/swagger.go b/swagger.go index 286c4e7..4c8adea 100644 --- a/swagger.go +++ b/swagger.go @@ -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: