Skip to content
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

Step parameters that accept path strings should accept pathlib.Path objects #147

Open
jdavies-st opened this issue Mar 12, 2024 · 0 comments

Comments

@jdavies-st
Copy link
Contributor

Currently, Step parameter validation requires file paths to be strings, specifically for overrid_<reffile> cases. pathlib.Path objects should also pass validation. Specifically this means modifying the custom validation functions here

validator.functions["input_file"] = _get_input_file_check(root_dir)
validator.functions["output_file"] = _get_output_file_check(root_dir)
validator.functions["is_datamodel"] = _is_datamodel
validator.functions["is_string_or_datamodel"] = _is_string_or_datamodel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant