Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 66 additions & 1 deletion docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7589,6 +7589,21 @@ const docTemplate = `{
},
"db_username": {
"type": "string"
},
"ssl_cert": {
"type": "string"
},
"ssl_enabled": {
"type": "boolean"
},
"ssl_key": {
"type": "string"
},
"ssl_mode": {
"type": "string"
},
"ssl_root_cert": {
"type": "string"
}
}
},
Expand All @@ -7597,6 +7612,7 @@ const docTemplate = `{
"required": [
"contact_email",
"email",
"external_content_display",
"lang",
"name",
"password",
Expand All @@ -7612,6 +7628,13 @@ const docTemplate = `{
"type": "string",
"maxLength": 500
},
"external_content_display": {
"type": "string",
"enum": [
"always_display",
"ask_before_display"
]
},
"lang": {
"type": "string",
"maxLength": 30
Expand All @@ -7621,7 +7644,8 @@ const docTemplate = `{
},
"name": {
"type": "string",
"maxLength": 30
"maxLength": 30,
"minLength": 2
},
"password": {
"type": "string",
Expand Down Expand Up @@ -9796,6 +9820,9 @@ const docTemplate = `{
"schema.QuestionPageRespOperator": {
"type": "object",
"properties": {
"avatar": {
"type": "string"
},
"display_name": {
"type": "string"
},
Expand Down Expand Up @@ -10393,6 +10420,9 @@ const docTemplate = `{
"revision": {
"type": "string"
},
"site_legal": {
"$ref": "#/definitions/schema.SiteLegalSimpleResp"
},
"site_seo": {
"$ref": "#/definitions/schema.SiteSeoResp"
},
Expand Down Expand Up @@ -10446,7 +10476,17 @@ const docTemplate = `{
},
"schema.SiteLegalReq": {
"type": "object",
"required": [
"external_content_display"
],
"properties": {
"external_content_display": {
"type": "string",
"enum": [
"always_display",
"ask_before_display"
]
},
"privacy_policy_original_text": {
"type": "string"
},
Expand All @@ -10463,7 +10503,17 @@ const docTemplate = `{
},
"schema.SiteLegalResp": {
"type": "object",
"required": [
"external_content_display"
],
"properties": {
"external_content_display": {
"type": "string",
"enum": [
"always_display",
"ask_before_display"
]
},
"privacy_policy_original_text": {
"type": "string"
},
Expand All @@ -10478,6 +10528,21 @@ const docTemplate = `{
}
}
},
"schema.SiteLegalSimpleResp": {
"type": "object",
"required": [
"external_content_display"
],
"properties": {
"external_content_display": {
"type": "string",
"enum": [
"always_display",
"ask_before_display"
]
}
}
},
"schema.SiteLoginReq": {
"type": "object",
"properties": {
Expand Down
67 changes: 66 additions & 1 deletion docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -7562,6 +7562,21 @@
},
"db_username": {
"type": "string"
},
"ssl_cert": {
"type": "string"
},
"ssl_enabled": {
"type": "boolean"
},
"ssl_key": {
"type": "string"
},
"ssl_mode": {
"type": "string"
},
"ssl_root_cert": {
"type": "string"
}
}
},
Expand All @@ -7570,6 +7585,7 @@
"required": [
"contact_email",
"email",
"external_content_display",
"lang",
"name",
"password",
Expand All @@ -7585,6 +7601,13 @@
"type": "string",
"maxLength": 500
},
"external_content_display": {
"type": "string",
"enum": [
"always_display",
"ask_before_display"
]
},
"lang": {
"type": "string",
"maxLength": 30
Expand All @@ -7594,7 +7617,8 @@
},
"name": {
"type": "string",
"maxLength": 30
"maxLength": 30,
"minLength": 2
},
"password": {
"type": "string",
Expand Down Expand Up @@ -9769,6 +9793,9 @@
"schema.QuestionPageRespOperator": {
"type": "object",
"properties": {
"avatar": {
"type": "string"
},
"display_name": {
"type": "string"
},
Expand Down Expand Up @@ -10366,6 +10393,9 @@
"revision": {
"type": "string"
},
"site_legal": {
"$ref": "#/definitions/schema.SiteLegalSimpleResp"
},
"site_seo": {
"$ref": "#/definitions/schema.SiteSeoResp"
},
Expand Down Expand Up @@ -10419,7 +10449,17 @@
},
"schema.SiteLegalReq": {
"type": "object",
"required": [
"external_content_display"
],
"properties": {
"external_content_display": {
"type": "string",
"enum": [
"always_display",
"ask_before_display"
]
},
"privacy_policy_original_text": {
"type": "string"
},
Expand All @@ -10436,7 +10476,17 @@
},
"schema.SiteLegalResp": {
"type": "object",
"required": [
"external_content_display"
],
"properties": {
"external_content_display": {
"type": "string",
"enum": [
"always_display",
"ask_before_display"
]
},
"privacy_policy_original_text": {
"type": "string"
},
Expand All @@ -10451,6 +10501,21 @@
}
}
},
"schema.SiteLegalSimpleResp": {
"type": "object",
"required": [
"external_content_display"
],
"properties": {
"external_content_display": {
"type": "string",
"enum": [
"always_display",
"ask_before_display"
]
}
}
},
"schema.SiteLoginReq": {
"type": "object",
"properties": {
Expand Down
45 changes: 45 additions & 0 deletions docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@ definitions:
type: string
db_username:
type: string
ssl_cert:
type: string
ssl_enabled:
type: boolean
ssl_key:
type: string
ssl_mode:
type: string
ssl_root_cert:
type: string
required:
- db_type
type: object
Expand All @@ -95,13 +105,19 @@ definitions:
email:
maxLength: 500
type: string
external_content_display:
enum:
- always_display
- ask_before_display
type: string
lang:
maxLength: 30
type: string
login_required:
type: boolean
name:
maxLength: 30
minLength: 2
type: string
password:
maxLength: 32
Expand All @@ -116,6 +132,7 @@ definitions:
required:
- contact_email
- email
- external_content_display
- lang
- name
- password
Expand Down Expand Up @@ -1625,6 +1642,8 @@ definitions:
type: object
schema.QuestionPageRespOperator:
properties:
avatar:
type: string
display_name:
type: string
id:
Expand Down Expand Up @@ -2035,6 +2054,8 @@ definitions:
$ref: '#/definitions/schema.SiteLoginResp'
revision:
type: string
site_legal:
$ref: '#/definitions/schema.SiteLegalSimpleResp'
site_seo:
$ref: '#/definitions/schema.SiteSeoResp'
site_users:
Expand Down Expand Up @@ -2072,6 +2093,11 @@ definitions:
type: object
schema.SiteLegalReq:
properties:
external_content_display:
enum:
- always_display
- ask_before_display
type: string
privacy_policy_original_text:
type: string
privacy_policy_parsed_text:
Expand All @@ -2080,9 +2106,16 @@ definitions:
type: string
terms_of_service_parsed_text:
type: string
required:
- external_content_display
type: object
schema.SiteLegalResp:
properties:
external_content_display:
enum:
- always_display
- ask_before_display
type: string
privacy_policy_original_text:
type: string
privacy_policy_parsed_text:
Expand All @@ -2091,6 +2124,18 @@ definitions:
type: string
terms_of_service_parsed_text:
type: string
required:
- external_content_display
type: object
schema.SiteLegalSimpleResp:
properties:
external_content_display:
enum:
- always_display
- ask_before_display
type: string
required:
- external_content_display
type: object
schema.SiteLoginReq:
properties:
Expand Down