mirror of https://github.com/harness/drone.git
fix: [CDE-332]: gitspaces swagger fix (#2916)
* fix: [CDE-332]: gitspaces swagger fixpull/3586/head
parent
2daeee0b93
commit
ffa2643136
|
@ -45,7 +45,7 @@ func ParseGitspaceOwner(r *http.Request) enum.GitspaceOwner {
|
|||
)
|
||||
}
|
||||
|
||||
// ParseGitspaceOwner extracts the gitspace owner type from the url.
|
||||
// ParseGitspaceStates extracts the gitspace owner type from the url.
|
||||
func ParseGitspaceStates(r *http.Request) []enum.GitspaceFilterState {
|
||||
pTypesRaw := r.URL.Query()[QueryParamGitspaceStates]
|
||||
m := make(map[enum.GitspaceFilterState]struct{}) // use map to eliminate duplicates
|
||||
|
|
|
@ -31,6 +31,7 @@ const (
|
|||
var GitspaceSorts = sortEnum([]GitspaceSort{
|
||||
GitspaceSortLastUsed,
|
||||
GitspaceSortCreated,
|
||||
GitspaceSortLastActivated,
|
||||
})
|
||||
|
||||
func (GitspaceSort) Enum() []interface{} { return toInterfaceSlice(GitspaceSorts) }
|
||||
|
|
Loading…
Reference in New Issue