Skip to content

Commit

Permalink
apidoc fixes (kanidm#2614)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvv committed Mar 4, 2024
1 parent 0d05afc commit 1a81b43
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion proto/src/internal/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
#[serde(rename = "csv")]
Csv,
Expand Down
4 changes: 4 additions & 0 deletions server/core/src/https/apidocs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ impl Modify for SecurityAddon {
super::v1_oauth2::oauth2_id_scopemap_delete,
super::v1_oauth2::oauth2_id_sup_scopemap_post,
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_get,
Expand Down Expand Up @@ -216,6 +219,7 @@ impl Modify for SecurityAddon {
internal::Modify,
internal::ModifyList,
internal::ModifyRequest,
internal::Oauth2ClaimMapJoin,
internal::OperationError,
internal::PasskeyDetail,
internal::PasswordFeedback,
Expand Down
6 changes: 3 additions & 3 deletions server/core/src/https/v1_oauth2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ pub(crate) async fn oauth2_id_patch(
}

#[utoipa::path(
patch,
post,
path = "/v1/oauth2/{rs_name}/_scopemap/{group}",
request_body=Vec<String>,
responses(
Expand Down Expand Up @@ -232,7 +232,7 @@ pub(crate) async fn oauth2_id_scopemap_delete(
}

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

#[utoipa::path(
patch,
post,
path = "/v1/oauth2/{rs_name}/_claimmap/{claim_name}",
request_body=Oauth2ClaimMapJoin,
responses(
Expand Down

0 comments on commit 1a81b43

Please sign in to comment.