Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
tank
Commits
752135a8
Commit
752135a8
authored
Mar 24, 2022
by
robwa
Browse files
fix: Specify enum value for API scheme
parent
fed90a8c
Pipeline
#1758
passed with stages
in 6 minutes and 13 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
api/docs/docs.go
View file @
752135a8
...
...
@@ -1549,7 +1549,15 @@ const docTemplate = `{
"type": "string"
},
"state": {
"type": "integer"
"type": "string",
"enum": [
"new",
"initializing",
"ready",
"failed",
"destroyed",
"unknown"
]
}
}
},
...
...
auth/utils.go
View file @
752135a8
...
...
@@ -84,7 +84,7 @@ func (s *BackendState) MarshalText() (data []byte, err error) {
type
AuthBackendInfo
struct
{
Name
string
Description
string
State
*
BackendState
State
*
BackendState
`swaggertype:"string" enums:"new,initializing,ready,failed,destroyed,unknown"`
}
type
NewSessionRequest
struct
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment