!guardrails hub install hub://guardrails/regex_match
Pratekh opened this issue · comments
Prateek Gupta commented
WARNING:py.warnings:/usr/local/lib/python3.10/dist-packages/guardrails/validators/init.py:50: FutureWarning:
Importing validators from guardrails.validators
is deprecated.
All validators are now available in the Guardrails Hub. Please install
and import them from the hub instead. All validators will be
removed from this module in the next major release.
Install with: `guardrails hub install hub://<namespace>/<validator_name>`
Import as: from guardrails.hub import `ValidatorName`
warn(
Validation failed for field with errors: Result must match Open.*
Caleb Courier commented
@Pratekh what exactly is the issue you're trying to report here? Is it the warning or the fact that the validation failed?
Prateek Gupta commented
Ok it's fixed now @CalebCourier