mirror of
https://github.com/deuxfleurs-org/garage.git
synced 2026-08-30 08:49:29 +00:00
fix(openapi): set parameters in query instead of path for get params
get request params are wrongfully outputted as "in path" instead of "in query", it fix this. Fixes #1081
This commit is contained in:
@@ -308,6 +308,7 @@ pub struct ListAdminTokensResponse(pub Vec<GetAdminTokenInfoResponse>);
|
|||||||
// ---- GetAdminTokenInfo ----
|
// ---- GetAdminTokenInfo ----
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, IntoParams)]
|
#[derive(Debug, Clone, Serialize, Deserialize, IntoParams)]
|
||||||
|
#[into_params(parameter_in = Query)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct GetAdminTokenInfoRequest {
|
pub struct GetAdminTokenInfoRequest {
|
||||||
/// Admin API token ID
|
/// Admin API token ID
|
||||||
@@ -648,6 +649,7 @@ pub struct ListKeysResponseItem {
|
|||||||
// ---- GetKeyInfo ----
|
// ---- GetKeyInfo ----
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, IntoParams)]
|
#[derive(Debug, Clone, Serialize, Deserialize, IntoParams)]
|
||||||
|
#[into_params(parameter_in = Query)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct GetKeyInfoRequest {
|
pub struct GetKeyInfoRequest {
|
||||||
/// Access key ID
|
/// Access key ID
|
||||||
@@ -790,6 +792,7 @@ pub struct BucketLocalAlias {
|
|||||||
// ---- GetBucketInfo ----
|
// ---- GetBucketInfo ----
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, IntoParams)]
|
#[derive(Debug, Clone, Serialize, Deserialize, IntoParams)]
|
||||||
|
#[into_params(parameter_in = Query)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct GetBucketInfoRequest {
|
pub struct GetBucketInfoRequest {
|
||||||
/// Exact bucket ID to look up
|
/// Exact bucket ID to look up
|
||||||
@@ -928,6 +931,7 @@ pub struct CleanupIncompleteUploadsResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize, IntoParams)]
|
#[derive(Debug, Clone, Serialize, Deserialize, IntoParams)]
|
||||||
|
#[into_params(parameter_in = Query)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct InspectObjectRequest {
|
pub struct InspectObjectRequest {
|
||||||
pub bucket_id: String,
|
pub bucket_id: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user