apidoc fixes (#2614)

This commit is contained in:
Vladimir Dronnikov 2024-03-04 05:10:01 +03:00 committed by GitHub
parent 0d05afc1e2
commit 1a81b437d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 4 deletions

View file

@ -207,7 +207,7 @@ impl TryFrom<&str> for FsType {
} }
} }
#[derive(Debug, Serialize, Deserialize, Clone, Copy)] #[derive(Debug, Serialize, Deserialize, Clone, Copy, ToSchema)]
pub enum Oauth2ClaimMapJoin { pub enum Oauth2ClaimMapJoin {
#[serde(rename = "csv")] #[serde(rename = "csv")]
Csv, Csv,

View file

@ -70,6 +70,9 @@ impl Modify for SecurityAddon {
super::v1_oauth2::oauth2_id_scopemap_delete, super::v1_oauth2::oauth2_id_scopemap_delete,
super::v1_oauth2::oauth2_id_sup_scopemap_post, super::v1_oauth2::oauth2_id_sup_scopemap_post,
super::v1_oauth2::oauth2_id_sup_scopemap_delete, super::v1_oauth2::oauth2_id_sup_scopemap_delete,
super::v1_oauth2::oauth2_id_claimmap_join_post,
super::v1_oauth2::oauth2_id_claimmap_post,
super::v1_oauth2::oauth2_id_claimmap_delete,
super::v1_scim::scim_sync_post, super::v1_scim::scim_sync_post,
super::v1_scim::scim_sync_get, super::v1_scim::scim_sync_get,
@ -216,6 +219,7 @@ impl Modify for SecurityAddon {
internal::Modify, internal::Modify,
internal::ModifyList, internal::ModifyList,
internal::ModifyRequest, internal::ModifyRequest,
internal::Oauth2ClaimMapJoin,
internal::OperationError, internal::OperationError,
internal::PasskeyDetail, internal::PasskeyDetail,
internal::PasswordFeedback, internal::PasswordFeedback,

View file

@ -178,7 +178,7 @@ pub(crate) async fn oauth2_id_patch(
} }
#[utoipa::path( #[utoipa::path(
patch, post,
path = "/v1/oauth2/{rs_name}/_scopemap/{group}", path = "/v1/oauth2/{rs_name}/_scopemap/{group}",
request_body=Vec<String>, request_body=Vec<String>,
responses( responses(
@ -232,7 +232,7 @@ pub(crate) async fn oauth2_id_scopemap_delete(
} }
#[utoipa::path( #[utoipa::path(
patch, post,
path = "/v1/oauth2/{rs_name}/_claimmap/{claim_name}/{group}", path = "/v1/oauth2/{rs_name}/_claimmap/{claim_name}/{group}",
request_body=Vec<String>, request_body=Vec<String>,
responses( responses(
@ -267,7 +267,7 @@ pub(crate) async fn oauth2_id_claimmap_post(
} }
#[utoipa::path( #[utoipa::path(
patch, post,
path = "/v1/oauth2/{rs_name}/_claimmap/{claim_name}", path = "/v1/oauth2/{rs_name}/_claimmap/{claim_name}",
request_body=Oauth2ClaimMapJoin, request_body=Oauth2ClaimMapJoin,
responses( responses(