Skip to content
Merged
Show file tree
Hide file tree
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: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes

## 0.17.3 (2024-03-21)

### titiler.application

* Add `extra="ignore"` option `ApiSettings` to fix pydantic issue when using `.env` file (author @imanshafiei540, https://github.com/developmentseed/titiler/pull/800)

## 0.17.2 (2024-03-15)

### titiler.core
Expand Down
4 changes: 3 additions & 1 deletion src/titiler/application/titiler/application/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ class ApiSettings(BaseSettings):
# an API key required to access any endpoint, passed via the ?access_token= query parameter
global_access_token: Optional[str] = None

model_config = SettingsConfigDict(env_prefix="TITILER_API_", env_file=".env")
model_config = SettingsConfigDict(
env_prefix="TITILER_API_", env_file=".env", extra="ignore"
)

@field_validator("cors_origins")
def parse_cors_origin(cls, v):
Expand Down