add CreateHookOptionConfig
required properties as fields
This commit is contained in:
parent
25794c3e1d
commit
fd0c22a1c6
|
@ -500,6 +500,8 @@ pub enum CreateHookOptionType {
|
||||||
/// required are "content_type" and "url" Required
|
/// required are "content_type" and "url" Required
|
||||||
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)]
|
||||||
pub struct CreateHookOptionConfig {
|
pub struct CreateHookOptionConfig {
|
||||||
|
pub content_type: String,
|
||||||
|
pub url: url::Url,
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
pub additional: BTreeMap<String, String>,
|
pub additional: BTreeMap<String, String>,
|
||||||
}
|
}
|
||||||
|
|
|
@ -16942,9 +16942,18 @@
|
||||||
"CreateHookOptionConfig": {
|
"CreateHookOptionConfig": {
|
||||||
"description": "CreateHookOptionConfig has all config options in it\nrequired are \"content_type\" and \"url\" Required",
|
"description": "CreateHookOptionConfig has all config options in it\nrequired are \"content_type\" and \"url\" Required",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"required": ["content_type", "url"],
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
|
"properties": {
|
||||||
|
"content_type": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
"x-go-package": "code.gitea.io/gitea/modules/structs"
|
||||||
},
|
},
|
||||||
"CreateIssueCommentOption": {
|
"CreateIssueCommentOption": {
|
||||||
|
|
Loading…
Reference in a new issue