Skip to content

Commit

Permalink
Add utoipa schema serialization for AdminKey
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 1f2416ef230f6980605dd1c7206ce5c48433c209
  • Loading branch information
atrakh authored and Convex, Inc. committed Jan 12, 2025
1 parent a878258 commit 36270f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/common/src/types/admin_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use std::fmt::Formatter;
use headers::Authorization;
use serde::Serialize;
use sync_types::headers::ConvexAdminAuthorization;
use utoipa::ToSchema;

/// Encrypted system key
#[derive(Clone)]
Expand All @@ -22,7 +23,7 @@ impl std::fmt::Debug for SystemKey {
}

/// Encrypted admin key
#[derive(Serialize, Clone)]
#[derive(Serialize, Clone, ToSchema)]
pub struct AdminKey(String);

impl std::fmt::Debug for AdminKey {
Expand Down

0 comments on commit 36270f3

Please sign in to comment.