Skip to content

Commit 1db3022

Browse files
sy-recordsLinkinStars
authored andcommitted
chore: sync swagger
1 parent 66e88a2 commit 1db3022

File tree

3 files changed

+177
-2
lines changed

3 files changed

+177
-2
lines changed

docs/docs.go

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7589,6 +7589,21 @@ const docTemplate = `{
75897589
},
75907590
"db_username": {
75917591
"type": "string"
7592+
},
7593+
"ssl_cert": {
7594+
"type": "string"
7595+
},
7596+
"ssl_enabled": {
7597+
"type": "boolean"
7598+
},
7599+
"ssl_key": {
7600+
"type": "string"
7601+
},
7602+
"ssl_mode": {
7603+
"type": "string"
7604+
},
7605+
"ssl_root_cert": {
7606+
"type": "string"
75927607
}
75937608
}
75947609
},
@@ -7597,6 +7612,7 @@ const docTemplate = `{
75977612
"required": [
75987613
"contact_email",
75997614
"email",
7615+
"external_content_display",
76007616
"lang",
76017617
"name",
76027618
"password",
@@ -7612,6 +7628,13 @@ const docTemplate = `{
76127628
"type": "string",
76137629
"maxLength": 500
76147630
},
7631+
"external_content_display": {
7632+
"type": "string",
7633+
"enum": [
7634+
"always_display",
7635+
"ask_before_display"
7636+
]
7637+
},
76157638
"lang": {
76167639
"type": "string",
76177640
"maxLength": 30
@@ -7621,7 +7644,8 @@ const docTemplate = `{
76217644
},
76227645
"name": {
76237646
"type": "string",
7624-
"maxLength": 30
7647+
"maxLength": 30,
7648+
"minLength": 2
76257649
},
76267650
"password": {
76277651
"type": "string",
@@ -9796,6 +9820,9 @@ const docTemplate = `{
97969820
"schema.QuestionPageRespOperator": {
97979821
"type": "object",
97989822
"properties": {
9823+
"avatar": {
9824+
"type": "string"
9825+
},
97999826
"display_name": {
98009827
"type": "string"
98019828
},
@@ -10393,6 +10420,9 @@ const docTemplate = `{
1039310420
"revision": {
1039410421
"type": "string"
1039510422
},
10423+
"site_legal": {
10424+
"$ref": "#/definitions/schema.SiteLegalSimpleResp"
10425+
},
1039610426
"site_seo": {
1039710427
"$ref": "#/definitions/schema.SiteSeoResp"
1039810428
},
@@ -10446,7 +10476,17 @@ const docTemplate = `{
1044610476
},
1044710477
"schema.SiteLegalReq": {
1044810478
"type": "object",
10479+
"required": [
10480+
"external_content_display"
10481+
],
1044910482
"properties": {
10483+
"external_content_display": {
10484+
"type": "string",
10485+
"enum": [
10486+
"always_display",
10487+
"ask_before_display"
10488+
]
10489+
},
1045010490
"privacy_policy_original_text": {
1045110491
"type": "string"
1045210492
},
@@ -10463,7 +10503,17 @@ const docTemplate = `{
1046310503
},
1046410504
"schema.SiteLegalResp": {
1046510505
"type": "object",
10506+
"required": [
10507+
"external_content_display"
10508+
],
1046610509
"properties": {
10510+
"external_content_display": {
10511+
"type": "string",
10512+
"enum": [
10513+
"always_display",
10514+
"ask_before_display"
10515+
]
10516+
},
1046710517
"privacy_policy_original_text": {
1046810518
"type": "string"
1046910519
},
@@ -10478,6 +10528,21 @@ const docTemplate = `{
1047810528
}
1047910529
}
1048010530
},
10531+
"schema.SiteLegalSimpleResp": {
10532+
"type": "object",
10533+
"required": [
10534+
"external_content_display"
10535+
],
10536+
"properties": {
10537+
"external_content_display": {
10538+
"type": "string",
10539+
"enum": [
10540+
"always_display",
10541+
"ask_before_display"
10542+
]
10543+
}
10544+
}
10545+
},
1048110546
"schema.SiteLoginReq": {
1048210547
"type": "object",
1048310548
"properties": {

docs/swagger.json

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7562,6 +7562,21 @@
75627562
},
75637563
"db_username": {
75647564
"type": "string"
7565+
},
7566+
"ssl_cert": {
7567+
"type": "string"
7568+
},
7569+
"ssl_enabled": {
7570+
"type": "boolean"
7571+
},
7572+
"ssl_key": {
7573+
"type": "string"
7574+
},
7575+
"ssl_mode": {
7576+
"type": "string"
7577+
},
7578+
"ssl_root_cert": {
7579+
"type": "string"
75657580
}
75667581
}
75677582
},
@@ -7570,6 +7585,7 @@
75707585
"required": [
75717586
"contact_email",
75727587
"email",
7588+
"external_content_display",
75737589
"lang",
75747590
"name",
75757591
"password",
@@ -7585,6 +7601,13 @@
75857601
"type": "string",
75867602
"maxLength": 500
75877603
},
7604+
"external_content_display": {
7605+
"type": "string",
7606+
"enum": [
7607+
"always_display",
7608+
"ask_before_display"
7609+
]
7610+
},
75887611
"lang": {
75897612
"type": "string",
75907613
"maxLength": 30
@@ -7594,7 +7617,8 @@
75947617
},
75957618
"name": {
75967619
"type": "string",
7597-
"maxLength": 30
7620+
"maxLength": 30,
7621+
"minLength": 2
75987622
},
75997623
"password": {
76007624
"type": "string",
@@ -9769,6 +9793,9 @@
97699793
"schema.QuestionPageRespOperator": {
97709794
"type": "object",
97719795
"properties": {
9796+
"avatar": {
9797+
"type": "string"
9798+
},
97729799
"display_name": {
97739800
"type": "string"
97749801
},
@@ -10366,6 +10393,9 @@
1036610393
"revision": {
1036710394
"type": "string"
1036810395
},
10396+
"site_legal": {
10397+
"$ref": "#/definitions/schema.SiteLegalSimpleResp"
10398+
},
1036910399
"site_seo": {
1037010400
"$ref": "#/definitions/schema.SiteSeoResp"
1037110401
},
@@ -10419,7 +10449,17 @@
1041910449
},
1042010450
"schema.SiteLegalReq": {
1042110451
"type": "object",
10452+
"required": [
10453+
"external_content_display"
10454+
],
1042210455
"properties": {
10456+
"external_content_display": {
10457+
"type": "string",
10458+
"enum": [
10459+
"always_display",
10460+
"ask_before_display"
10461+
]
10462+
},
1042310463
"privacy_policy_original_text": {
1042410464
"type": "string"
1042510465
},
@@ -10436,7 +10476,17 @@
1043610476
},
1043710477
"schema.SiteLegalResp": {
1043810478
"type": "object",
10479+
"required": [
10480+
"external_content_display"
10481+
],
1043910482
"properties": {
10483+
"external_content_display": {
10484+
"type": "string",
10485+
"enum": [
10486+
"always_display",
10487+
"ask_before_display"
10488+
]
10489+
},
1044010490
"privacy_policy_original_text": {
1044110491
"type": "string"
1044210492
},
@@ -10451,6 +10501,21 @@
1045110501
}
1045210502
}
1045310503
},
10504+
"schema.SiteLegalSimpleResp": {
10505+
"type": "object",
10506+
"required": [
10507+
"external_content_display"
10508+
],
10509+
"properties": {
10510+
"external_content_display": {
10511+
"type": "string",
10512+
"enum": [
10513+
"always_display",
10514+
"ask_before_display"
10515+
]
10516+
}
10517+
}
10518+
},
1045410519
"schema.SiteLoginReq": {
1045510520
"type": "object",
1045610521
"properties": {

docs/swagger.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,16 @@ definitions:
8484
type: string
8585
db_username:
8686
type: string
87+
ssl_cert:
88+
type: string
89+
ssl_enabled:
90+
type: boolean
91+
ssl_key:
92+
type: string
93+
ssl_mode:
94+
type: string
95+
ssl_root_cert:
96+
type: string
8797
required:
8898
- db_type
8999
type: object
@@ -95,13 +105,19 @@ definitions:
95105
email:
96106
maxLength: 500
97107
type: string
108+
external_content_display:
109+
enum:
110+
- always_display
111+
- ask_before_display
112+
type: string
98113
lang:
99114
maxLength: 30
100115
type: string
101116
login_required:
102117
type: boolean
103118
name:
104119
maxLength: 30
120+
minLength: 2
105121
type: string
106122
password:
107123
maxLength: 32
@@ -116,6 +132,7 @@ definitions:
116132
required:
117133
- contact_email
118134
- email
135+
- external_content_display
119136
- lang
120137
- name
121138
- password
@@ -1625,6 +1642,8 @@ definitions:
16251642
type: object
16261643
schema.QuestionPageRespOperator:
16271644
properties:
1645+
avatar:
1646+
type: string
16281647
display_name:
16291648
type: string
16301649
id:
@@ -2035,6 +2054,8 @@ definitions:
20352054
$ref: '#/definitions/schema.SiteLoginResp'
20362055
revision:
20372056
type: string
2057+
site_legal:
2058+
$ref: '#/definitions/schema.SiteLegalSimpleResp'
20382059
site_seo:
20392060
$ref: '#/definitions/schema.SiteSeoResp'
20402061
site_users:
@@ -2072,6 +2093,11 @@ definitions:
20722093
type: object
20732094
schema.SiteLegalReq:
20742095
properties:
2096+
external_content_display:
2097+
enum:
2098+
- always_display
2099+
- ask_before_display
2100+
type: string
20752101
privacy_policy_original_text:
20762102
type: string
20772103
privacy_policy_parsed_text:
@@ -2080,9 +2106,16 @@ definitions:
20802106
type: string
20812107
terms_of_service_parsed_text:
20822108
type: string
2109+
required:
2110+
- external_content_display
20832111
type: object
20842112
schema.SiteLegalResp:
20852113
properties:
2114+
external_content_display:
2115+
enum:
2116+
- always_display
2117+
- ask_before_display
2118+
type: string
20862119
privacy_policy_original_text:
20872120
type: string
20882121
privacy_policy_parsed_text:
@@ -2091,6 +2124,18 @@ definitions:
20912124
type: string
20922125
terms_of_service_parsed_text:
20932126
type: string
2127+
required:
2128+
- external_content_display
2129+
type: object
2130+
schema.SiteLegalSimpleResp:
2131+
properties:
2132+
external_content_display:
2133+
enum:
2134+
- always_display
2135+
- ask_before_display
2136+
type: string
2137+
required:
2138+
- external_content_display
20942139
type: object
20952140
schema.SiteLoginReq:
20962141
properties:

0 commit comments

Comments
 (0)