https://dagster.io/ logo
#ask-community
Title
# ask-community
l

Lily Grier

07/18/2023, 6:32 PM
Hi there, I’m trying to validate the schema in my
config.yaml
using
make_values_resource
. My code snippet is as follows:
Copy code
"county_globals": make_values_resource(
            account_url=str,
            download_container=str,
            upload_container=Noneable(str),
            local_dir=Noneable(str),
        ),
I want to specify that the local_dir has to be either None or a specific string value (such that I can verify it’s in the .gitignore file). However, the dagster typing doesn’t seem to support string literals. Ideally, I’d want something like
local_dir=Optional[Literal['a/specific/path']]
. Is there a way to do this type of validation?