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

Improve validation error messages #11

Open
dillonkearns opened this issue Dec 3, 2021 · 0 comments
Open

Improve validation error messages #11

dillonkearns opened this issue Dec 3, 2021 · 0 comments

Comments

@dillonkearns
Copy link
Owner

elm-graphql http://localhost/graphql --output src/GraphQl --scalar-codecs src/ScalarCodecs

produces the following error:

`scalar-codecs` failed a validation. Must be of form /^[A-Z][A-Za-z_]*(\.[A-Z][A-Za-z_]*)*$/

Could be improved with something like:

Invalid `--scalar-codecs` option.

I expected an Elm module name (/^[A-Z][A-Za-z_]*(\.[A-Z][A-Za-z_]*)*$/), but got `src/ScalarCodecs`.
ZeldaIV added a commit to ZeldaIV/elm-cli-options-parser that referenced this issue Dec 4, 2021
* Added expectation parameter to pass in expected outcome if regex validation fails
ZeldaIV added a commit to ZeldaIV/elm-cli-options-parser that referenced this issue Dec 4, 2021
* Added expectation parameter to pass in expected outcome if regex validation fails
ZeldaIV added a commit to ZeldaIV/elm-cli-options-parser that referenced this issue Dec 4, 2021
* Added expectation parameter to pass in expected outcome if regex validation fails
ZeldaIV added a commit to ZeldaIV/elm-cli-options-parser that referenced this issue Dec 7, 2021
* Added message parameter to pass in expected outcome if regex validation fails
dillonkearns pushed a commit that referenced this issue Dec 7, 2021
* Added message parameter to pass in expected outcome if regex validation fails
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