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

Validating input from Plaster parameters #429

Open
erikgraa opened this issue Feb 22, 2023 · 1 comment
Open

Validating input from Plaster parameters #429

erikgraa opened this issue Feb 22, 2023 · 1 comment

Comments

@erikgraa
Copy link
Contributor

erikgraa commented Feb 22, 2023

Hi!

I have scoured over the documentation and cannot find any reference of being able to leverage e.g. ValidatePattern in parameters.

For instance, when one has a text parameter, it could be useful to have the user re-try inputting a value until it satisfies some regular expression.

Example showing how it could work with an optional pattern attribute.

<parameter name='ModuleName' type='text' prompt='Enter the name of the module' pattern='^[\w\s]+$' />
<parameter name='Version' type='text' prompt='Enter the version of the module' pattern='^\d\.\d$' />

I might have missed something, or is this functionality at present unimplemented?

@erikgraa
Copy link
Contributor Author

See #430 for a suggestion on how this can be accomplished.

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