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 Mar 28, 2024
1 parent e4b4541 commit b5c61d7
Show file tree
Hide file tree
Showing 5 changed files with 199 additions and 142 deletions.
125 changes: 73 additions & 52 deletions api/swagger/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6191,7 +6191,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.PermissionSetResponse"
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.GetPermissionsByRoleIdResponse"
}
}
}
Expand Down Expand Up @@ -7974,7 +7974,7 @@ const docTemplate = `{
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.PermissionSetResponse"
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.GetPermissionTemplatesResponse"
}
}
}
Expand Down Expand Up @@ -10329,6 +10329,30 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.GetPermissionTemplatesResponse": {
"type": "object",
"properties": {
"permissions": {
"description": "Permissions *PermissionTemplateResponse ` + "`" + `json:\"permissions\"` + "`" + `",
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.TemplateResponse"
}
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.GetPermissionsByRoleIdResponse": {
"type": "object",
"properties": {
"permissions": {
"description": "Permissions *PermissionSetResponse ` + "`" + `json:\"permissions\"` + "`" + `",
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.PermissionResponse"
}
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.GetPolicyResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -10703,7 +10727,11 @@ const docTemplate = `{
"type": "object",
"properties": {
"permissions": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.MergedPermissionSetResponse"
"description": "Permissions *MergedPermissionSetResponse ` + "`" + `json:\"permissions\"` + "`" + `",
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.MergePermissionResponse"
}
}
}
},
Expand Down Expand Up @@ -11007,37 +11035,14 @@ const docTemplate = `{
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.MergePermissionResponse"
}
},
"is_allowed": {
"isAllowed": {
"type": "boolean"
},
"key": {
"type": "string"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.MergedPermissionSetResponse": {
"type": "object",
"properties": {
"configuration": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.MergePermissionResponse"
},
"dashboard": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.MergePermissionResponse"
},
"notification": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.MergePermissionResponse"
},
"policy": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.MergePermissionResponse"
},
"project_management": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.MergePermissionResponse"
},
"stack": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.MergePermissionResponse"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.OrganizationResponse": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -11161,7 +11166,7 @@ const docTemplate = `{
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.EndpointResponse"
}
},
"is_allowed": {
"isAllowed": {
"type": "boolean"
},
"key": {
Expand All @@ -11172,29 +11177,6 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.PermissionSetResponse": {
"type": "object",
"properties": {
"configuration": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.PermissionResponse"
},
"dashboard": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.PermissionResponse"
},
"notification": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.PermissionResponse"
},
"policy": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.PermissionResponse"
},
"project_management": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.PermissionResponse"
},
"stack": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.PermissionResponse"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.PermittedOrganization": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -12472,6 +12454,26 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.TemplateResponse": {
"type": "object",
"properties": {
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.TemplateResponse"
}
},
"isAllowed": {
"type": "boolean"
},
"key": {
"type": "string"
},
"name": {
"type": "string"
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.Unit": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -12691,13 +12693,32 @@ const docTemplate = `{
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.UpdatePermissionUpdateRequest": {
"type": "object",
"required": [
"ID",
"isAllowed"
],
"properties": {
"ID": {
"type": "string"
},
"isAllowed": {
"type": "boolean",
"enum": [
true,
false
]
}
}
},
"github_com_openinfradev_tks-api_pkg_domain.UpdatePermissionsByRoleIdRequest": {
"type": "object",
"properties": {
"permissions": {
"type": "array",
"items": {
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.PermissionResponse"
"$ref": "#/definitions/github_com_openinfradev_tks-api_pkg_domain.UpdatePermissionUpdateRequest"
}
}
}
Expand Down
Loading

0 comments on commit b5c61d7

Please sign in to comment.