This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/answer.git


The following commit(s) were added to refs/heads/main by this push:
     new 1db30228 chore: sync swagger
1db30228 is described below

commit 1db30228d5a1d9de134454a9ede7356baf32b5a6
Author: Luffy <[email protected]>
AuthorDate: Tue Mar 18 13:23:49 2025 +0800

    chore: sync swagger
---
 docs/docs.go      | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 docs/swagger.json | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 docs/swagger.yaml | 45 +++++++++++++++++++++++++++++++++++++
 3 files changed, 177 insertions(+), 2 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index dbaa05fb..2fb46904 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -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"
                 }
             }
         },
@@ -7597,6 +7612,7 @@ const docTemplate = `{
             "required": [
                 "contact_email",
                 "email",
+                "external_content_display",
                 "lang",
                 "name",
                 "password",
@@ -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
@@ -7621,7 +7644,8 @@ const docTemplate = `{
                 },
                 "name": {
                     "type": "string",
-                    "maxLength": 30
+                    "maxLength": 30,
+                    "minLength": 2
                 },
                 "password": {
                     "type": "string",
@@ -9796,6 +9820,9 @@ const docTemplate = `{
         "schema.QuestionPageRespOperator": {
             "type": "object",
             "properties": {
+                "avatar": {
+                    "type": "string"
+                },
                 "display_name": {
                     "type": "string"
                 },
@@ -10393,6 +10420,9 @@ const docTemplate = `{
                 "revision": {
                     "type": "string"
                 },
+                "site_legal": {
+                    "$ref": "#/definitions/schema.SiteLegalSimpleResp"
+                },
                 "site_seo": {
                     "$ref": "#/definitions/schema.SiteSeoResp"
                 },
@@ -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"
                 },
@@ -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"
                 },
@@ -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": {
diff --git a/docs/swagger.json b/docs/swagger.json
index aa35ff90..f8a179b7 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -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"
                 }
             }
         },
@@ -7570,6 +7585,7 @@
             "required": [
                 "contact_email",
                 "email",
+                "external_content_display",
                 "lang",
                 "name",
                 "password",
@@ -7585,6 +7601,13 @@
                     "type": "string",
                     "maxLength": 500
                 },
+                "external_content_display": {
+                    "type": "string",
+                    "enum": [
+                        "always_display",
+                        "ask_before_display"
+                    ]
+                },
                 "lang": {
                     "type": "string",
                     "maxLength": 30
@@ -7594,7 +7617,8 @@
                 },
                 "name": {
                     "type": "string",
-                    "maxLength": 30
+                    "maxLength": 30,
+                    "minLength": 2
                 },
                 "password": {
                     "type": "string",
@@ -9769,6 +9793,9 @@
         "schema.QuestionPageRespOperator": {
             "type": "object",
             "properties": {
+                "avatar": {
+                    "type": "string"
+                },
                 "display_name": {
                     "type": "string"
                 },
@@ -10366,6 +10393,9 @@
                 "revision": {
                     "type": "string"
                 },
+                "site_legal": {
+                    "$ref": "#/definitions/schema.SiteLegalSimpleResp"
+                },
                 "site_seo": {
                     "$ref": "#/definitions/schema.SiteSeoResp"
                 },
@@ -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"
                 },
@@ -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"
                 },
@@ -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": {
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 17ccd75b..16c5cfbb 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -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
@@ -95,6 +105,11 @@ definitions:
       email:
         maxLength: 500
         type: string
+      external_content_display:
+        enum:
+        - always_display
+        - ask_before_display
+        type: string
       lang:
         maxLength: 30
         type: string
@@ -102,6 +117,7 @@ definitions:
         type: boolean
       name:
         maxLength: 30
+        minLength: 2
         type: string
       password:
         maxLength: 32
@@ -116,6 +132,7 @@ definitions:
     required:
     - contact_email
     - email
+    - external_content_display
     - lang
     - name
     - password
@@ -1625,6 +1642,8 @@ definitions:
     type: object
   schema.QuestionPageRespOperator:
     properties:
+      avatar:
+        type: string
       display_name:
         type: string
       id:
@@ -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:
@@ -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:
@@ -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:
@@ -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:

Reply via email to