Skip to content

Documentation is unclear to available validator methods #1529

Open
@392781

Description

@392781

Describe the problem

In this documentation example, a function(?) called regex_search is used:

 validator: >-
        {% if not (project_name | regex_search('^[a-z][a-z0-9\-]+$')) %}
        project_name must start with a letter, followed one or more letters, digits or dashes all lowercase.
        {% endif %}

There is no further mention of this in the documentation or any additional validator methods that are discussed. It is also not part of the jinja2 docs.

Template

NA

To Reproduce

No response

Logs

No response

Expected behavior

Please include available validation commands in the documentation.

Screenshots/screencasts/logs

No response

Operating system

Linux

Operating system distribution and version

NA

Copier version

9.1.1

Python version

NA

Installation method

pipx+pypi

Additional context

I am trying to find if it is possible to validate input based on existing file names or bash command outputs (for instance trying to validate that a response to a question is unique based on grep output in bash... regex seems to exist with regex_search but no further validation methods are documented).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions