Commit 752135a8 authored by robwa's avatar robwa
Browse files

fix: Specify enum value for API scheme

parent fed90a8c
Pipeline #1758 passed with stages
in 6 minutes and 13 seconds
...@@ -1549,7 +1549,15 @@ const docTemplate = `{ ...@@ -1549,7 +1549,15 @@ const docTemplate = `{
"type": "string" "type": "string"
}, },
"state": { "state": {
"type": "integer" "type": "string",
"enum": [
"new",
"initializing",
"ready",
"failed",
"destroyed",
"unknown"
]
} }
} }
}, },
......
...@@ -84,7 +84,7 @@ func (s *BackendState) MarshalText() (data []byte, err error) { ...@@ -84,7 +84,7 @@ func (s *BackendState) MarshalText() (data []byte, err error) {
type AuthBackendInfo struct { type AuthBackendInfo struct {
Name string Name string
Description string Description string
State *BackendState State *BackendState `swaggertype:"string" enums:"new,initializing,ready,failed,destroyed,unknown"`
} }
type NewSessionRequest struct { type NewSessionRequest struct {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment