Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions backend/app/users/types.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from dataclasses import field
from datetime import datetime
from typing import Mapping, Any, TypeAlias, Union
from typing import Mapping, Any, TypeAlias, Union, Optional

from pydantic import BaseModel, Field, model_validator, json

Expand Down Expand Up @@ -55,7 +55,7 @@ class UserPreferencesRepositoryUpdateRequest(BaseModel):
UUID - The client ID (UUID) assigned to the device client (Browser).
"""

experiments: Experiments = Field(default_factory=dict)
experiments: Optional[Experiments] = None
"""
experiments - A dictionary mapping experiment namespaces to their configuration
Each experiment can have either a simple string value or a nested configuration.
Expand Down Expand Up @@ -95,7 +95,7 @@ class UserPreferencesUpdateRequest(BaseModel):
UUID - The client ID (UUID) assigned to the device client (Browser).
"""

experiments: Experiments = Field(default_factory=dict)
experiments: Optional[Experiments] = None
"""
experiments - A dictionary mapping experiment namespaces to their configuration
Each experiment can have either a simple string value or a nested configuration.
Expand Down
Loading