You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_build/html/index.html
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -146,8 +146,7 @@ <h2>What is pyvaru?<a class="headerlink" href="#what-is-pyvaru" title="Permalink
146
146
<p>From the software design point of view, a rule is a class implementing the strategy pattern,
147
147
by encapsulating the validation logic in an interface method called <codeclass="docutils literal"><spanclass="pre">apply()</span></code>.</p>
148
148
<p>The library already offers a series of common validation rules like:</p>
149
-
<blockquote>
150
-
<div><ulclass="simple">
149
+
<ulclass="simple">
151
150
<li><codeclass="docutils literal"><spanclass="pre">TypeRule</span></code> (it checks that the target value is an instance of the expected type)</li>
152
151
<li><codeclass="docutils literal"><spanclass="pre">FullStringRule</span></code> (it checks the the target value is a string with content)</li>
153
152
<li><codeclass="docutils literal"><spanclass="pre">ChoiceRule</span></code> (it checks that the target value is contained in a list of available options)</li>
@@ -162,7 +161,6 @@ <h2>What is pyvaru?<a class="headerlink" href="#what-is-pyvaru" title="Permalink
162
161
<li><codeclass="docutils literal"><spanclass="pre">FutureDateRule</span></code> (it checks that the target value is a date in the future)</li>
163
162
<li><codeclass="docutils literal"><spanclass="pre">UniqueItemsRule</span></code> (it checks that the target iterable does not contain duplicated items)</li>
164
163
</ul>
165
-
</div></blockquote>
166
164
<p>* where “x” is a provided reference value</p>
167
165
<p>The developer is then free to create his custom rules by extending the abstract <codeclass="docutils literal"><spanclass="pre">ValidationRule</span></code>
168
166
and implementing the logic in the <codeclass="docutils literal"><spanclass="pre">apply()</span></code> method.</p>
0 commit comments