- 
                Notifications
    
You must be signed in to change notification settings  - Fork 116
 
use pydantic settings #657
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use pydantic settings #657
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
| stac_fastapi_title: str = "stac-fastapi" | ||
| stac_fastapi_description: str = "stac-fastapi" | ||
| stac_fastapi_version: str = "0.1" | ||
| stac_fastapi_landing_id: str = "stac-fastapi" | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as discussed in #639 I think it makes more sense for this variable to be named landing_id
| stac_fastapi_title: str = "stac-fastapi" | ||
| stac_fastapi_description: str = "stac-fastapi" | ||
| stac_fastapi_version: str = "0.1" | ||
| stac_fastapi_landing_id: str = "stac-fastapi" | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've also reverted to stac-fastapi default as it was before
| landing_page_id: str = attr.ib(default="stac-fastapi") | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. The version is the version number of the User's stac_fastapi, not this version ie. soon to be 2.5.0
| 
           #657 @jonhealy1 could you check with the latest change 🙏 @m-mohr I'll wait for your 👍  | 
    
* Allow an easy way to configure the landing page id, description, title and version via env variables * use pydantic settings (#657) * use pydantic settings * rename stac_fastapi_id to stac_fastapi_landing_id * Update docs/src/tips-and-tricks.md --------- Co-authored-by: vincentsarago <[email protected]>
proposed changed for #639
This PR is moving the env configuration into
ApiSettings