Skip to content

Fixed a typo in the yaml configuration block #2310

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

Closed
wants to merge 1 commit into from
Closed

Fixed a typo in the yaml configuration block #2310

wants to merge 1 commit into from

Conversation

hpatoio
Copy link
Contributor

@hpatoio hpatoio commented Mar 15, 2013

Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets no

@stof
Copy link
Member

stof commented Mar 15, 2013

There is actually 2 ways to do it:

constraints:
    ContainsAlphanumeric: ~
    NotBlank: ~

or

constraints:
    - ContainsAlphanumeric: ~
    - ContainsAlphanumeric:
        groups: [other]
        message: This message is used for the other group
    NotBlank: ~

The first solution is shorter, but the second one becomes necessary to use the same constraint several times.

@hpatoio
Copy link
Contributor Author

hpatoio commented Mar 18, 2013

So in the doc we can go with

constraints:
    ContainsAlphanumeric: ~

correct ?

If you confirm I'll change the PR.

@wouterj
Copy link
Member

wouterj commented Mar 18, 2013

I say yes, that's correct.

@hpatoio
Copy link
Contributor Author

hpatoio commented Mar 18, 2013

Closing this. See PR #2314

@hpatoio hpatoio closed this Mar 18, 2013
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

Successfully merging this pull request may close these issues.

3 participants