Skip to content

Commit 6102a4b

Browse files
committed
Use Option<Ulid> in schemars
1 parent ba9fc35 commit 6102a4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/handlers/src/admin/model.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,11 +804,11 @@ pub struct PersonalSession {
804804
revoked_at: Option<DateTime<Utc>>,
805805

806806
/// The ID of the user who owns this session (if user-owned)
807-
#[schemars(with = "super::schema::Ulid")]
807+
#[schemars(with = "Option<super::schema::Ulid>")]
808808
owner_user_id: Option<Ulid>,
809809

810810
/// The ID of the `OAuth2` client that owns this session (if client-owned)
811-
#[schemars(with = "super::schema::Ulid")]
811+
#[schemars(with = "Option<super::schema::Ulid>")]
812812
owner_client_id: Option<Ulid>,
813813

814814
/// The ID of the user that the session acts on behalf of

0 commit comments

Comments
 (0)