Skip to content

Documented the "values" option of the Expression constraint #9428

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 4 commits into from

Conversation

javiereguiluz
Copy link
Member

This fixes #9098.

@ostrolucky I have problems defining the XML config of this example. Could you please help me? Thanks!

@ostrolucky
Copy link
Contributor

I'm not knowledgable in XML, but this reminds me same issue we had with Workflow metadata. @stof responded with this symfony/symfony#23257 (comment), seems it could be applied here too

@javiereguiluz
Copy link
Member Author

@ostrolucky thanks for your help! I did some changes, but we'll need a review here from some XML expert. Thanks!

values
~~~~~~

**type**: ``array`` **default**: an empty array
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we use [] in that case? (or just nothing, as empty is like no default)


class Analysis
{
// ...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo, this and the empty line below can be removed. That saves some lines

@wouterj
Copy link
Member

wouterj commented Mar 13, 2018

I can confirm the XML is correct

status: reviewed

@ostrolucky
Copy link
Contributor

Tried this xml, works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Validator] Add option to pass custom values to Expression validator
4 participants