From fce2780d07d78f18d3fd20a26b4895368d3b9c74 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Tue, 21 Oct 2025 10:16:36 +0100 Subject: [PATCH] Use Option in schemars --- crates/handlers/src/admin/model.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/handlers/src/admin/model.rs b/crates/handlers/src/admin/model.rs index 71052a79e..7936c02f8 100644 --- a/crates/handlers/src/admin/model.rs +++ b/crates/handlers/src/admin/model.rs @@ -804,11 +804,11 @@ pub struct PersonalSession { revoked_at: Option>, /// The ID of the user who owns this session (if user-owned) - #[schemars(with = "super::schema::Ulid")] + #[schemars(with = "Option")] owner_user_id: Option, /// The ID of the `OAuth2` client that owns this session (if client-owned) - #[schemars(with = "super::schema::Ulid")] + #[schemars(with = "Option")] owner_client_id: Option, /// The ID of the user that the session acts on behalf of