Skip to content

Commit

Permalink
minor fix. fix swag error
Browse files Browse the repository at this point in the history
  • Loading branch information
cho4036 committed Apr 1, 2024
1 parent 6c09909 commit a3c9716
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 112 deletions.
43 changes: 1 addition & 42 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -1924,14 +1924,7 @@ const docTemplate = `{
"Auth"
],
"summary": "logout",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.LogoutResponse"
}
}
}
"responses": {}
}
},
"/clusters": {
Expand Down Expand Up @@ -11605,12 +11598,6 @@ const docTemplate = `{
"passwordExpired": {
"type": "boolean"
},
"projects": {
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.ProjectIdProjectRoleResponse"
}
},
"role": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.RoleIdRoleNameResponse"
},
Expand All @@ -11621,20 +11608,6 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.LogoutResponse": {
"type": "object",
"properties": {
"ssoUrls": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.MandatoryPolicyInfo": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -12055,20 +12028,6 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.ProjectIdProjectRoleResponse": {
"type": "object",
"properties": {
"projectId": {
"type": "string"
},
"projectRoleId": {
"type": "string"
},
"projectRoleName": {
"type": "string"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.ProjectMemberRequest": {
"type": "object",
"required": [
Expand Down
43 changes: 1 addition & 42 deletions api/swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1918,14 +1918,7 @@
"Auth"
],
"summary": "logout",
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.LogoutResponse"
}
}
}
"responses": {}
}
},
"/clusters": {
Expand Down Expand Up @@ -11599,12 +11592,6 @@
"passwordExpired": {
"type": "boolean"
},
"projects": {
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.ProjectIdProjectRoleResponse"
}
},
"role": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.RoleIdRoleNameResponse"
},
Expand All @@ -11615,20 +11602,6 @@
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.LogoutResponse": {
"type": "object",
"properties": {
"ssoUrls": {
"type": "object",
"additionalProperties": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.MandatoryPolicyInfo": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -12049,20 +12022,6 @@
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.ProjectIdProjectRoleResponse": {
"type": "object",
"properties": {
"projectId": {
"type": "string"
},
"projectRoleId": {
"type": "string"
},
"projectRoleName": {
"type": "string"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.ProjectMemberRequest": {
"type": "object",
"required": [
Expand Down
28 changes: 1 addition & 27 deletions api/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1947,25 +1947,12 @@ definitions:
$ref: '#/definitions/github_com_openinfradev_tks-api_pkg_domain.OrganizationResponse'
passwordExpired:
type: boolean
projects:
items:
$ref: '#/definitions/github_com_openinfradev_tks-api_pkg_domain.ProjectIdProjectRoleResponse'
type: array
role:
$ref: '#/definitions/github_com_openinfradev_tks-api_pkg_domain.RoleIdRoleNameResponse'
token:
type: string
type: object
type: object
github_com_openinfradev_tks-api_pkg_domain.LogoutResponse:
properties:
ssoUrls:
additionalProperties:
items:
type: string
type: array
type: object
type: object
github_com_openinfradev_tks-api_pkg_domain.MandatoryPolicyInfo:
properties:
description:
Expand Down Expand Up @@ -2254,15 +2241,6 @@ definitions:
updatedAt:
type: string
type: object
github_com_openinfradev_tks-api_pkg_domain.ProjectIdProjectRoleResponse:
properties:
projectId:
type: string
projectRoleId:
type: string
projectRoleName:
type: string
type: object
github_com_openinfradev_tks-api_pkg_domain.ProjectMemberRequest:
properties:
projectRoleId:
Expand Down Expand Up @@ -4991,11 +4969,7 @@ paths:
description: logout
produces:
- application/json
responses:
"200":
description: OK
schema:
$ref: '#/definitions/github_com_openinfradev_tks-api_pkg_domain.LogoutResponse'
responses: {}
security:
- JWT: []
summary: logout
Expand Down
1 change: 0 additions & 1 deletion internal/delivery/http/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ func (h *AuthHandler) Login(w http.ResponseWriter, r *http.Request) {
// @Description logout
// @Accept json
// @Produce json
// @Success 200 {object} domain.LogoutResponse
// @Router /auth/logout [post]
// @Security JWT
func (h *AuthHandler) Logout(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit a3c9716

Please sign in to comment.