We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given a runtime untyped dynaconf instance with all its validators set and data loaded:
settings=Dynaconf( settings_file="x.toml", envvar_prefix="APP", validators=[Validator("name", ne="admin")] )
# x.toml name = "Bruno" age = 16 colors = ["red", "green", "blue"] profile = {"username": "rocha"}
on CLI
$ dynaconf -i config.settigns generate-schema --set-defaults > schema.py
from dynaconf.typed import Dynaconf, Validator, Options, DictValue class Profile(DictValue): username: str = "rocha" class Settings(Dynaconf): dynaconf_options = Options(settings_file="x.toml", envvar_prefix="APP") name: Annotated[str, Validator(ne="admin")] = "Bruno" age: int = 16 colors: list[str] = ["red", "green", "blue"] profile: Profile settings = Settings()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Given a runtime untyped dynaconf instance with all its validators set and data loaded:
on CLI
$ dynaconf -i config.settigns generate-schema --set-defaults > schema.py
The text was updated successfully, but these errors were encountered: