Use Option<Ulid> in schemars

This commit is contained in:
Olivier 'reivilibre
2025-10-21 10:16:36 +01:00
parent 45cefd0d8e
commit fce2780d07

View File

@@ -804,11 +804,11 @@ pub struct PersonalSession {
revoked_at: Option<DateTime<Utc>>,
/// The ID of the user who owns this session (if user-owned)
#[schemars(with = "super::schema::Ulid")]
#[schemars(with = "Option<super::schema::Ulid>")]
owner_user_id: Option<Ulid>,
/// The ID of the `OAuth2` client that owns this session (if client-owned)
#[schemars(with = "super::schema::Ulid")]
#[schemars(with = "Option<super::schema::Ulid>")]
owner_client_id: Option<Ulid>,
/// The ID of the user that the session acts on behalf of