Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

swagger

aichy126a9381056e985
diff --git a/docs/docs.go b/docs/docs.go
index f371483a..91628981 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -6149,12 +6149,21 @@ const docTemplate = `{
}
}
},
- "schema.ConfigFields": {
+ "schema.ConfigField": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
+ "name": {
+ "type": "string"
+ },
+ "options": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/schema.ConfigFieldOption"
+ }
+ },
"required": {
"type": "boolean"
},
@@ -6164,14 +6173,40 @@ const docTemplate = `{
"type": {
"type": "string"
},
- "ui_widget": {
- "$ref": "#/definitions/schema.UIWidget"
+ "ui_options": {
+ "$ref": "#/definitions/schema.ConfigFieldUIOptions"
+ },
+ "value": {}
+ }
+ },
+ "schema.ConfigFieldOption": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
},
"value": {
"type": "string"
}
}
},
+ "schema.ConfigFieldUIOptions": {
+ "type": "object",
+ "properties": {
+ "input_type": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "placeholder": {
+ "type": "string"
+ },
+ "rows": {
+ "type": "string"
+ }
+ }
+ },
"schema.ConnectorInfoResp": {
"type": "object",
"properties": {
@@ -6532,14 +6567,13 @@ const docTemplate = `{
"config_fields": {
"type": "array",
"items": {
- "$ref": "#/definitions/schema.ConfigFields"
+ "$ref": "#/definitions/schema.ConfigField"
}
},
"description": {
"type": "string"
},
"name": {
- "description": "ConfigFields []plugin.ConfigField ` + "`" + `json:\"config_fields\"` + "`" + `",
"type": "string"
},
"slug_name": {
@@ -6562,6 +6596,9 @@ const docTemplate = `{
"have_config": {
"type": "boolean"
},
+ "link": {
+ "type": "string"
+ },
"name": {
"type": "string"
},
@@ -7009,6 +7046,10 @@ const docTemplate = `{
"description": "follow count",
"type": "integer"
},
+ "have_password": {
+ "description": "user have password",
+ "type": "boolean"
+ },
"id": {
"description": "user id",
"type": "string"
@@ -7109,6 +7150,9 @@ const docTemplate = `{
"description": "follow count",
"type": "integer"
},
+ "have_password": {
+ "type": "boolean"
+ },
"id": {
"description": "user id",
"type": "string"
@@ -8096,17 +8140,6 @@ const docTemplate = `{
}
}
},
- "schema.UIWidget": {
- "type": "object",
- "properties": {
- "placeholder": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
"schema.UnreviewedRevisionInfoInfo": {
"type": "object",
"properties": {
@@ -8493,14 +8526,19 @@ const docTemplate = `{
},
"schema.UserModifyPassWordRequest": {
"type": "object",
+ "required": [
+ "pass"
+ ],
"properties": {
"old_pass": {
- "description": "old password",
- "type": "string"
+ "type": "string",
+ "maxLength": 32,
+ "minLength": 8
},
"pass": {
- "description": "password",
- "type": "string"
+ "type": "string",
+ "maxLength": 32,
+ "minLength": 8
}
}
},
diff --git a/docs/swagger.json b/docs/swagger.json
index 235fa4d7..17f8328f 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -6137,12 +6137,21 @@
}
}
},
- "schema.ConfigFields": {
+ "schema.ConfigField": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
+ "name": {
+ "type": "string"
+ },
+ "options": {
+ "type": "array",
+ "items": {
+ "$ref": "#/definitions/schema.ConfigFieldOption"
+ }
+ },
"required": {
"type": "boolean"
},
@@ -6152,14 +6161,40 @@
"type": {
"type": "string"
},
- "ui_widget": {
- "$ref": "#/definitions/schema.UIWidget"
+ "ui_options": {
+ "$ref": "#/definitions/schema.ConfigFieldUIOptions"
+ },
+ "value": {}
+ }
+ },
+ "schema.ConfigFieldOption": {
+ "type": "object",
+ "properties": {
+ "label": {
+ "type": "string"
},
"value": {
"type": "string"
}
}
},
+ "schema.ConfigFieldUIOptions": {
+ "type": "object",
+ "properties": {
+ "input_type": {
+ "type": "string"
+ },
+ "label": {
+ "type": "string"
+ },
+ "placeholder": {
+ "type": "string"
+ },
+ "rows": {
+ "type": "string"
+ }
+ }
+ },
"schema.ConnectorInfoResp": {
"type": "object",
"properties": {
@@ -6520,14 +6555,13 @@
"config_fields": {
"type": "array",
"items": {
- "$ref": "#/definitions/schema.ConfigFields"
+ "$ref": "#/definitions/schema.ConfigField"
}
},
"description": {
"type": "string"
},
"name": {
- "description": "ConfigFields []plugin.ConfigField `json:\"config_fields\"`",
"type": "string"
},
"slug_name": {
@@ -6550,6 +6584,9 @@
"have_config": {
"type": "boolean"
},
+ "link": {
+ "type": "string"
+ },
"name": {
"type": "string"
},
@@ -6997,6 +7034,10 @@
"description": "follow count",
"type": "integer"
},
+ "have_password": {
+ "description": "user have password",
+ "type": "boolean"
+ },
"id": {
"description": "user id",
"type": "string"
@@ -7097,6 +7138,9 @@
"description": "follow count",
"type": "integer"
},
+ "have_password": {
+ "type": "boolean"
+ },
"id": {
"description": "user id",
"type": "string"
@@ -8084,17 +8128,6 @@
}
}
},
- "schema.UIWidget": {
- "type": "object",
- "properties": {
- "placeholder": {
- "type": "string"
- },
- "type": {
- "type": "string"
- }
- }
- },
"schema.UnreviewedRevisionInfoInfo": {
"type": "object",
"properties": {
@@ -8481,14 +8514,19 @@
},
"schema.UserModifyPassWordRequest": {
"type": "object",
+ "required": [
+ "pass"
+ ],
"properties": {
"old_pass": {
- "description": "old password",
- "type": "string"
+ "type": "string",
+ "maxLength": 32,
+ "minLength": 8
},
"pass": {
- "description": "password",
- "type": "string"
+ "type": "string",
+ "maxLength": 32,
+ "minLength": 8
}
}
},
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index c6c02c1a..a597fe06 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -305,21 +305,44 @@ definitions:
switch:
type: boolean
type: object
- schema.ConfigFields:
+ schema.ConfigField:
properties:
description:
type: string
+ name:
+ type: string
+ options:
+ items:
+ $ref: '#/definitions/schema.ConfigFieldOption'
+ type: array
required:
type: boolean
title:
type: string
type:
type: string
- ui_widget:
- $ref: '#/definitions/schema.UIWidget'
+ ui_options:
+ $ref: '#/definitions/schema.ConfigFieldUIOptions'
+ value: {}
+ type: object
+ schema.ConfigFieldOption:
+ properties:
+ label:
+ type: string
value:
type: string
type: object
+ schema.ConfigFieldUIOptions:
+ properties:
+ input_type:
+ type: string
+ label:
+ type: string
+ placeholder:
+ type: string
+ rows:
+ type: string
+ type: object
schema.ConnectorInfoResp:
properties:
icon:
@@ -580,12 +603,11 @@ definitions:
properties:
config_fields:
items:
- $ref: '#/definitions/schema.ConfigFields'
+ $ref: '#/definitions/schema.ConfigField'
type: array
description:
type: string
name:
- description: ConfigFields []plugin.ConfigField `json:"config_fields"`
type: string
slug_name:
type: string
@@ -600,6 +622,8 @@ definitions:
type: boolean
have_config:
type: boolean
+ link:
+ type: string
name:
type: string
slug_name:
@@ -920,6 +944,9 @@ definitions:
follow_count:
description: follow count
type: integer
+ have_password:
+ description: user have password
+ type: boolean
id:
description: user id
type: string
@@ -994,6 +1021,8 @@ definitions:
follow_count:
description: follow count
type: integer
+ have_password:
+ type: boolean
id:
description: user id
type: string
@@ -1687,13 +1716,6 @@ definitions:
value:
type: string
type: object
- schema.UIWidget:
- properties:
- placeholder:
- type: string
- type:
- type: string
- type: object
schema.UnreviewedRevisionInfoInfo:
properties:
content:
@@ -1971,11 +1993,15 @@ definitions:
schema.UserModifyPassWordRequest:
properties:
old_pass:
- description: old password
+ maxLength: 32
+ minLength: 8
type: string
pass:
- description: password
+ maxLength: 32
+ minLength: 8
type: string
+ required:
+ - pass
type: object
schema.UserNoticeSetRequest:
properties: