-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Validator] Updated documentation of URL validator #4631
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
Conversation
23980b5
to
11d813e
Compare
👍 for checkDNS, |
@@ -8,6 +8,7 @@ Validates that a value is a valid URL string. | |||
+----------------+---------------------------------------------------------------------+ | |||
| Options | - `message`_ | | |||
| | - `protocols`_ | | |||
| | _ `checkDNS`_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is missing the final pipe character.
And I also would not use the option in the first examples, but explain it in its own section (that you already added) instead. |
|
||
**type**: ``Boolean`` **default**: ``false`` | ||
|
||
If true, then the checkdnsrr PHP function will be used to check the validity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can do :phpfunction:
checkdnsrr`` to link to the php.net page.
Updated the documentation regarding the Pull Request on Symfony : symfony/symfony#12956
@@ -8,6 +8,7 @@ Validates that a value is a valid URL string. | |||
+----------------+---------------------------------------------------------------------+ | |||
| Options | - `message`_ | | |||
| | - `protocols`_ | | |||
| | _ `checkDNS`_ | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The underscore before "checkDNS" should be a dash.
I agree with @xabbuh: the first examples should not use the |
…r (saro0h) This PR was merged into the 2.7 branch. Discussion ---------- [2.7][Validator] Added checkDNS option on URL validator | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #10088 | License | MIT | Doc PR | symfony/symfony-docs#4631 Commits ------- ad2f906 [Validator] Added a check DNS option on URL validator
…r (saro0h) This PR was merged into the 2.7 branch. Discussion ---------- [2.7][Validator] Added checkDNS option on URL validator | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #10088 | License | MIT | Doc PR | symfony/symfony-docs#4631 Commits ------- ad2f906 [Validator] Added a check DNS option on URL validator
I wish you a happy new year @saro0h. Can you update here given that the code pull request was merged? |
@@ -26,6 +27,9 @@ Basic Usage | |||
properties: | |||
bioUrl: | |||
- Url: ~ | |||
message: The url "{{ value }}" is not a valid url. | |||
protocols: [http, https] | |||
checkDNS: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would prefer if we set this to false because this is the default value.
@saro0h Can you update your pull request? |
…r (saro0h) This PR was merged into the 2.7 branch. Discussion ---------- [2.7][Validator] Added checkDNS option on URL validator | Q | A | ------------- | --- | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #10088 | License | MIT | Doc PR | symfony/symfony-docs#4631 Commits ------- ad2f906 [Validator] Added a check DNS option on URL validator
Hi @saro0h! Upcoming Saturday, we'll be hosting a doc sprint day. We would like to finish as much PRs as possible during/before that day. Maybe you can join or, if you agree, we can put it on a list so others can work on it. |
Updated the documentation regarding the Pull Request on Symfony : symfony/symfony#12956