From b2b4b5423fd8f6b5433891e56bf49c102e50ea1f Mon Sep 17 00:00:00 2001 From: "Frederick [Bot]" Date: Fri, 20 Oct 2023 11:39:17 +0000 Subject: [PATCH] [skip ci] Updated swagger docs --- pkg/swagger/docs.go | 8 +++----- pkg/swagger/swagger.json | 8 +++----- pkg/swagger/swagger.yaml | 4 +--- 3 files changed, 7 insertions(+), 13 deletions(-) diff --git a/pkg/swagger/docs.go b/pkg/swagger/docs.go index 6ca74bb7b8f..876de2b274a 100644 --- a/pkg/swagger/docs.go +++ b/pkg/swagger/docs.go @@ -2488,7 +2488,7 @@ const docTemplate = `{ "JWTKeyAuth": [] } ], - "description": "Create a webhook target which recieves POST requests about specified events from a project.", + "description": "Create a webhook target which receives POST requests about specified events from a project.", "consumes": [ "application/json" ], @@ -8468,8 +8468,7 @@ const docTemplate = `{ "description": "The webhook events which should fire this webhook target", "type": "array", "items": { - "type": "string", - "minLength": 1 + "type": "string" } }, "id": { @@ -8486,8 +8485,7 @@ const docTemplate = `{ }, "target_url": { "description": "The target URL where the POST request with the webhook payload will be made", - "type": "string", - "minLength": 1 + "type": "string" }, "updated": { "description": "A timestamp when this webhook target was last updated. You cannot change this value.", diff --git a/pkg/swagger/swagger.json b/pkg/swagger/swagger.json index 649ca6463e7..12ec143d9a3 100644 --- a/pkg/swagger/swagger.json +++ b/pkg/swagger/swagger.json @@ -2480,7 +2480,7 @@ "JWTKeyAuth": [] } ], - "description": "Create a webhook target which recieves POST requests about specified events from a project.", + "description": "Create a webhook target which receives POST requests about specified events from a project.", "consumes": [ "application/json" ], @@ -8460,8 +8460,7 @@ "description": "The webhook events which should fire this webhook target", "type": "array", "items": { - "type": "string", - "minLength": 1 + "type": "string" } }, "id": { @@ -8478,8 +8477,7 @@ }, "target_url": { "description": "The target URL where the POST request with the webhook payload will be made", - "type": "string", - "minLength": 1 + "type": "string" }, "updated": { "description": "A timestamp when this webhook target was last updated. You cannot change this value.", diff --git a/pkg/swagger/swagger.yaml b/pkg/swagger/swagger.yaml index 26d0d897d80..3a3d2399466 100644 --- a/pkg/swagger/swagger.yaml +++ b/pkg/swagger/swagger.yaml @@ -1053,7 +1053,6 @@ definitions: events: description: The webhook events which should fire this webhook target items: - minLength: 1 type: string type: array id: @@ -1069,7 +1068,6 @@ definitions: target_url: description: The target URL where the POST request with the webhook payload will be made - minLength: 1 type: string updated: description: A timestamp when this webhook target was last updated. You cannot @@ -3084,7 +3082,7 @@ paths: put: consumes: - application/json - description: Create a webhook target which recieves POST requests about specified + description: Create a webhook target which receives POST requests about specified events from a project. parameters: - description: Project ID