Skip to content

Commit ec985c0

Browse files
committed
[Validator] Reword the list of options for the version option of the Ip constraint
1 parent a5b0693 commit ec985c0

File tree

1 file changed

+15
-65
lines changed

1 file changed

+15
-65
lines changed

reference/constraints/Ip.rst

Lines changed: 15 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -104,71 +104,21 @@ Parameter Description
104104

105105
**type**: ``string`` **default**: ``4``
106106

107-
This determines exactly *how* the IP address is validated and can take one
108-
of a variety of different values:
109-
110-
**All ranges**
111-
112-
``4``
113-
Validates for IPv4 addresses
114-
``6``
115-
Validates for IPv6 addresses
116-
``all``
117-
Validates all IP formats
118-
119-
**No private ranges**
120-
121-
``4_no_priv``
122-
Validates for IPv4 but without private IP ranges
123-
``6_no_priv``
124-
Validates for IPv6 but without private IP ranges
125-
``all_no_priv``
126-
Validates for all IP formats but without private IP ranges
127-
128-
**No reserved ranges**
129-
130-
``4_no_res``
131-
Validates for IPv4 but without reserved IP ranges
132-
``6_no_res``
133-
Validates for IPv6 but without reserved IP ranges
134-
``all_no_res``
135-
Validates for all IP formats but without reserved IP ranges
136-
137-
**No public ranges**
138-
139-
``4_no_public``
140-
Validates for IPv4 but without public IP ranges
141-
``6_no_public``
142-
Validates for IPv6 but without public IP ranges
143-
``all_no_public``
144-
Validates for all IP formats but without public IP range
145-
146-
**Only private ranges**
147-
148-
``4_private``
149-
Validates for IPv4 but without public and reserved ranges
150-
``6_private``
151-
Validates for IPv6 but without public and reserved ranges
152-
``all_private``
153-
Validates for all IP formats but without public and reserved ranges
154-
155-
**Only reserved ranges**
156-
157-
``4_reserved``
158-
Validates for IPv4 but without private and public ranges
159-
``6_reserved``
160-
Validates for IPv6 but without private and public ranges
161-
``all_reserved``
162-
Validates for all IP formats but without private and public ranges
163-
164-
**Only public ranges**
165-
166-
``4_public``
167-
Validates for IPv4 but without private and reserved ranges
168-
``6_public``
169-
Validates for IPv6 but without private and reserved ranges
170-
``all_public``
171-
Validates for all IP formats but without private and reserved ranges
107+
This determines exactly *how* the IP address is validated. This option defines a
108+
lot of different possible values based on the ranges and the type of IP address
109+
that you want to allow/deny:
110+
111+
==================== =================== =================== ==================
112+
Ranges Allowed IPv4 addresses only IPv6 addresses only Both IPv4 and IPv6
113+
==================== =================== =================== ==================
114+
All ``4`` ``6`` ``all``
115+
All except private ``4_no_priv`` ``6_no_priv`` ``all_no_priv``
116+
All except reserved ``4_no_res`` ``6_no_res`` ``all_no_res``
117+
All except public ``4_no_public`` ``4_no_public`` ``all_no_public``
118+
Only private ``4_private`` ``6_private`` ``all_private``
119+
Only reserved ``4_reserved`` ``6_reserved`` ``all_reserved``
120+
Only public ``4_public`` ``6_public`` ``all_public``
121+
==================== =================== =================== ==================
172122

173123
.. versionadded:: 7.1
174124

0 commit comments

Comments
 (0)