Skip to content

Commit

Permalink
fix(api): fix swagger type for typeOfProblem (#1141)
Browse files Browse the repository at this point in the history
  • Loading branch information
kissken authored Feb 6, 2025
1 parent 4baf61e commit d908bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/dto/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ var (

type ProblemOfTarget struct {
Argument string `json:"argument" example:"consolidateBy"`
Type typeOfProblem `json:"type,omitempty" example:"warn"`
Type typeOfProblem `json:"type,omitempty" example:"warn" swaggertype:"string"` //nolint:govet
Description string `json:"description,omitempty" example:"This function affects only visual graph representation. It is meaningless in Moira"`
Position int `json:"position" example:"0"`
Problems []ProblemOfTarget `json:"problems,omitempty"`
Expand Down

0 comments on commit d908bd2

Please sign in to comment.