From fd0c22a1c61d9ddf8d30d3ab2a1a96592ca49ee1 Mon Sep 17 00:00:00 2001 From: Cyborus Date: Fri, 26 Apr 2024 13:34:08 -0400 Subject: add `CreateHookOptionConfig` required properties as fields --- src/generated/structs.rs | 2 ++ swagger.v1.json | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/src/generated/structs.rs b/src/generated/structs.rs index bcb8682..cda1845 100644 --- a/src/generated/structs.rs +++ b/src/generated/structs.rs @@ -500,6 +500,8 @@ pub enum CreateHookOptionType { /// required are "content_type" and "url" Required #[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] pub struct CreateHookOptionConfig { + pub content_type: String, + pub url: url::Url, #[serde(flatten)] pub additional: BTreeMap, } diff --git a/swagger.v1.json b/swagger.v1.json index ae371d0..052fafe 100644 --- a/swagger.v1.json +++ b/swagger.v1.json @@ -16942,9 +16942,18 @@ "CreateHookOptionConfig": { "description": "CreateHookOptionConfig has all config options in it\nrequired are \"content_type\" and \"url\" Required", "type": "object", + "required": ["content_type", "url"], "additionalProperties": { "type": "string" }, + "properties": { + "content_type": { + "type": "string" + }, + "url": { + "type": "string" + } + }, "x-go-package": "code.gitea.io/gitea/modules/structs" }, "CreateIssueCommentOption": { -- cgit v1.2.3