{"action":"opened","issue":{"url":"https://api.github.com/repos/Limenius/Liform/issues/27","repository_url":"https://api.github.com/repos/Limenius/Liform","labels_url":"https://api.github.com/repos/Limenius/Liform/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/Limenius/Liform/issues/27/comments","events_url":"https://api.github.com/repos/Limenius/Liform/issues/27/events","html_url":"https://github.com/Limenius/Liform/issues/27","id":322183756,"number":27,"title":"Unable to set `minLength` on property","user":{"login":"Invis1ble","id":1710944,"avatar_url":"https://avatars0.githubusercontent.com/u/1710944?v=4","gravatar_id":"","url":"https://api.github.com/users/Invis1ble","html_url":"https://github.com/Invis1ble","followers_url":"https://api.github.com/users/Invis1ble/followers","following_url":"https://api.github.com/users/Invis1ble/following{/other_user}","gists_url":"https://api.github.com/users/Invis1ble/gists{/gist_id}","starred_url":"https://api.github.com/users/Invis1ble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Invis1ble/subscriptions","organizations_url":"https://api.github.com/users/Invis1ble/orgs","repos_url":"https://api.github.com/users/Invis1ble/repos","events_url":"https://api.github.com/users/Invis1ble/events{/privacy}","received_events_url":"https://api.github.com/users/Invis1ble/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-11T06:34:54Z","updated_at":"2018-05-11T06:34:54Z","closed_at":null,"author_association":"NONE","body":"My form contains `RepeatedType` of `PasswordType`:\r\n\r\n```php\r\n$builder\r\n    ->add('plainPassword', RepeatedType::class, [\r\n        'type' => PasswordType::class,\r\n    ])\r\n;\r\n```\r\n\r\nvalidation rules looks like this:\r\n\r\n```yaml\r\nplainPassword:\r\n    - NotBlank: ~\r\n    - Length:\r\n        min: 6\r\n        max: 255\r\n```\r\nso `ValidatorGuesser` can't guess length and `StringTransformer::addMinLength()` doesn't add `minLength`.\r\n\r\nI would suggest to look at `attr.minlength` option like in `addMaxLength()` method and, if it not exists, run default algorithm of guessing by validation rules."}}
{"actor":{"display_login":"Invis1ble"}}