mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 00:37:04 -06:00
Auth: fix swagger responses for the SSO settings API (#81639)
fix swagger responses for the sso settings API
This commit is contained in:
parent
91b2909c39
commit
395a06ab86
@ -233,7 +233,11 @@ type UpdateProviderSettingsParams struct {
|
||||
Provider string `json:"key"`
|
||||
// in:body
|
||||
// required:true
|
||||
Body models.SSOSettings `json:"body"`
|
||||
Body struct {
|
||||
ID string `json:"id"`
|
||||
Provider string `json:"provider"`
|
||||
Settings map[string]any `json:"settings"`
|
||||
} `json:"body"`
|
||||
}
|
||||
|
||||
// swagger:parameters removeProviderSettings
|
||||
@ -246,11 +250,21 @@ type RemoveProviderSettingsParams struct {
|
||||
// swagger:response listSSOSettingsResponse
|
||||
type ListSSOSettingsResponse struct {
|
||||
// in: body
|
||||
Body []models.SSOSettings `json:"body"`
|
||||
Body []struct {
|
||||
ID string `json:"id"`
|
||||
Provider string `json:"provider"`
|
||||
Settings map[string]any `json:"settings"`
|
||||
Source string `json:"source"`
|
||||
} `json:"body"`
|
||||
}
|
||||
|
||||
// swagger:response getSSOSettingsResponse
|
||||
type GetSSOSettingsResponse struct {
|
||||
// in: body
|
||||
Body models.SSOSettings `json:"body"`
|
||||
Body struct {
|
||||
ID string `json:"id"`
|
||||
Provider string `json:"provider"`
|
||||
Settings map[string]any `json:"settings"`
|
||||
Source string `json:"source"`
|
||||
} `json:"body"`
|
||||
}
|
||||
|
@ -11475,7 +11475,19 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/SSOSettings"
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"provider": {
|
||||
"type": "string"
|
||||
},
|
||||
"settings": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
@ -22991,7 +23003,22 @@
|
||||
"getSSOSettingsResponse": {
|
||||
"description": "(empty)",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/SSOSettings"
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"provider": {
|
||||
"type": "string"
|
||||
},
|
||||
"settings": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"getSharingOptionsResponse": {
|
||||
@ -23177,7 +23204,22 @@
|
||||
"schema": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/SSOSettings"
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"provider": {
|
||||
"type": "string"
|
||||
},
|
||||
"settings": {
|
||||
"type": "object",
|
||||
"additionalProperties": false
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -1173,7 +1173,22 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/SSOSettings"
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"provider": {
|
||||
"type": "string"
|
||||
},
|
||||
"settings": {
|
||||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -1438,7 +1453,22 @@
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/SSOSettings"
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"provider": {
|
||||
"type": "string"
|
||||
},
|
||||
"settings": {
|
||||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
},
|
||||
"source": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
@ -25205,7 +25235,19 @@
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/SSOSettings"
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string"
|
||||
},
|
||||
"provider": {
|
||||
"type": "string"
|
||||
},
|
||||
"settings": {
|
||||
"additionalProperties": false,
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user