Skip to content

Commit

Permalink
chore: remove well_known_url from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemSBulgakov committed Oct 27, 2024
1 parent 9b835bd commit 38dbbee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
9 changes: 2 additions & 7 deletions settings.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,13 @@ $schema: https://json-schema.org/draft-07/schema
$defs:
Accounts:
additionalProperties: false
description: InNoHassle-Accounts integration settings
description: InNoHassle Accounts integration settings
properties:
api_url:
default: https://api.innohassle.ru/accounts/v0
description: URL of the Accounts API
title: Api Url
type: string
well_known_url:
default: https://api.innohassle.ru/accounts/v0/.well-known
description: URL of the well-known endpoint for the Accounts API
title: Well Known Url
type: string
api_jwt_token:
description: JWT token for accessing the Accounts API as a service
format: password
Expand Down Expand Up @@ -99,7 +94,7 @@ properties:
- $ref: '#/$defs/MusicRoom'
- type: 'null'
default: null
description: InNoHassle-MusicRoom integration settings
description: InNoHassle MusicRoom integration settings
sport:
anyOf:
- $ref: '#/$defs/Sport'
Expand Down
12 changes: 4 additions & 8 deletions src/config_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,16 @@ class Sport(SettingsEntityModel):


class Accounts(SettingsEntityModel):
"""InNoHassle-Accounts integration settings"""
"""InNoHassle Accounts integration settings"""

api_url: str = "https://api.innohassle.ru/accounts/v0"
"URL of the Accounts API"
well_known_url: str = "https://api.innohassle.ru/accounts/v0/.well-known"
"URL of the well-known endpoint for the Accounts API"
api_jwt_token: SecretStr
"JWT token for accessing the Accounts API as a service"


class Settings(SettingsEntityModel):
"""
Settings for the application. Get settings from `settings.yaml` file.
"""
"""Settings for the application. Get settings from `settings.yaml` file."""

app_root_path: str = ""
"Prefix for the API path (e.g. '/api/v0')"
Expand All @@ -59,9 +55,9 @@ class Settings(SettingsEntityModel):
predefined_dir: Path = Path("./predefined")
"Path to the directory with predefined data"
accounts: Accounts
"InNoHassle-Accounts integration settings"
"InNoHassle Accounts integration settings"
music_room: Optional[MusicRoom] = None
"InNoHassle-MusicRoom integration settings"
"InNoHassle MusicRoom integration settings"
sport: Sport | None = Sport()
"Innopolis Sport integration settings"

Expand Down

0 comments on commit 38dbbee

Please sign in to comment.