feat: introduce pydantic-settings for config definition and validation (#5202)
Co-authored-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
d160d1ed02
commit
3cc6093e4b
21 changed files with 772 additions and 227 deletions
12
api/configs/extra/__init__.py
Normal file
12
api/configs/extra/__init__.py
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
from pydantic import BaseModel
|
||||
|
||||
from configs.extra.notion_configs import NotionConfigs
|
||||
from configs.extra.sentry_configs import SentryConfigs
|
||||
|
||||
|
||||
class ExtraServiceConfigs(
|
||||
# place the configs in alphabet order
|
||||
NotionConfigs,
|
||||
SentryConfigs,
|
||||
):
|
||||
pass
|
||||
Loading…
Add table
Add a link
Reference in a new issue