Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor fix. fix swag error #317

Merged
merged 1 commit into from
Apr 1, 2024
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
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
Loading