Skip to content

Schema

choices(*choices)

Checks that value belongs to the specified set of values

Source code in dvc_studio_client/schema.py
4
5
6
def choices(*choices):
    """Checks that value belongs to the specified set of values"""
    return Any(*choices, msg=f"expected one of {', '.join(choices)}")