diff --git a/docs/config.html b/docs/config.html index b7948ccf8..d7f169515 100644 --- a/docs/config.html +++ b/docs/config.html @@ -910,7 +910,7 @@

SQLiteDatabaseConfiguration

db_path string - +Path to file where SQLite database is stored diff --git a/docs/config.md b/docs/config.md index 4ec61f05e..a740d6a42 100644 --- a/docs/config.md +++ b/docs/config.md @@ -336,7 +336,7 @@ SQLite database configuration. | Field | Type | Description | |-------|------|-------------| -| db_path | string | | +| db_path | string | Path to file where SQLite database is stored | ## ServiceConfiguration diff --git a/docs/config.png b/docs/config.png index 99bed703c..06459afb7 100644 Binary files a/docs/config.png and b/docs/config.png differ diff --git a/docs/config.puml b/docs/config.puml index 7ed71774a..02289d062 100644 --- a/docs/config.puml +++ b/docs/config.puml @@ -158,7 +158,7 @@ class "RHIdentityConfiguration" as src.models.config.RHIdentityConfiguration { required_entitlements : Optional[list[str]] } class "SQLiteDatabaseConfiguration" as src.models.config.SQLiteDatabaseConfiguration { - db_path : str + db_path : Optional[str] } class "ServiceConfiguration" as src.models.config.ServiceConfiguration { access_log : bool diff --git a/docs/config.svg b/docs/config.svg index b922e4387..af55d095c 100644 --- a/docs/config.svg +++ b/docs/config.svg @@ -341,7 +341,7 @@ SQLiteDatabaseConfiguration - db_path : str + db_path : Optional[str] @@ -545,6 +545,6 @@ user_data_collection - + diff --git a/src/models/config.py b/src/models/config.py index 1bea6ae79..df1c0673f 100644 --- a/src/models/config.py +++ b/src/models/config.py @@ -89,7 +89,11 @@ def check_cors_configuration(self) -> Self: class SQLiteDatabaseConfiguration(ConfigurationBase): """SQLite database configuration.""" - db_path: str + db_path: str = Field( + ..., + title="DB path", + description="Path to file where SQLite database is stored", + ) class InMemoryCacheConfig(ConfigurationBase):