File tree Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Expand file tree Collapse file tree 2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,16 @@ func Search(ctx *context.APIContext) {
3333 // type: integer
3434 // responses:
3535 // "200":
36- // "$ref": "#/responses/UserList"
36+ // description: "SearchResults of a successful search"
37+ // schema:
38+ // type: object
39+ // properties:
40+ // ok:
41+ // type: boolean
42+ // data:
43+ // type: array
44+ // items:
45+ // "$ref": "#/definitions/User"
3746 opts := & models.SearchUserOptions {
3847 Keyword : strings .Trim (ctx .Query ("q" ), " " ),
3948 Type : models .UserTypeIndividual ,
Original file line number Diff line number Diff line change 52125212 ],
52135213 "responses": {
52145214 "200": {
5215- "$ref": "#/responses/UserList"
5215+ "description": "SearchResults of a successful search",
5216+ "schema": {
5217+ "type": "object",
5218+ "properties": {
5219+ "data": {
5220+ "type": "array",
5221+ "items": {
5222+ "$ref": "#/definitions/User"
5223+ }
5224+ },
5225+ "ok": {
5226+ "type": "boolean"
5227+ }
5228+ }
5229+ }
52165230 }
52175231 }
52185232 }
You can’t perform that action at this time.
0 commit comments