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

MissingRequiredInputValue exception message should describe the missing input fields #150

Open
dianacamacho opened this issue Feb 7, 2025 · 0 comments

Comments

@dianacamacho
Copy link
Contributor

dianacamacho commented Feb 7, 2025

Feature Description

When a field in a decanter is set to required: true, a MissingRequiredInputValue exception is raised with message "Required inputs have been declared, but no values for those inputs were passed." But it gives no feedback regarding what those required inputs are. If a required field is missing, it would be helpful for the error message to include that information.

Suggested Solution

update the error message in empty_required_input_error method in Decanter::Core to interpolate the list of required_inputs not present in the args

Alternatives Considered / Existing Workarounds

Additional Context

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

No branches or pull requests

1 participant