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

PolicyTemplate에서 스키마가 사라지는 버그 수정 #323

Merged
Merged
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
18 changes: 9 additions & 9 deletions pkg/domain/admin/policy-template.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ type PolicyTemplateResponse struct {
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`

TemplateName string `json:"templateName" example:"필수 Label 검사"`
Kind string `json:"kind" example:"K8sRequiredLabels"`
Severity string `json:"severity" enums:"low,medium,high" example:"medium"`
Deprecated bool `json:"deprecated" example:"false"`
Version string `json:"version,omitempty" example:"v1.0.1"`
Description string `json:"description,omitempty" example:"이 정책은 ..."`
ParametersSchema []domain.ParameterDef `json:"parametersSchema,omitempty"`
Rego string `json:"rego" example:"rego 코드"`
Libs []string `json:"libs" example:"rego 코드"`
TemplateName string `json:"templateName" example:"필수 Label 검사"`
Kind string `json:"kind" example:"K8sRequiredLabels"`
Severity string `json:"severity" enums:"low,medium,high" example:"medium"`
Deprecated bool `json:"deprecated" example:"false"`
Version string `json:"version,omitempty" example:"v1.0.1"`
Description string `json:"description,omitempty" example:"이 정책은 ..."`
ParametersSchema []*domain.ParameterDef `json:"parametersSchema,omitempty"`
Rego string `json:"rego" example:"rego 코드"`
Libs []string `json:"libs" example:"rego 코드"`

PermittedOrganizations []PermittedOrganization `json:"permittedOrganizations"`
}
Expand Down
Loading