Skip to content

Commit fc01784

Browse files
authored
[Validator] avoid broken rendering of inline types in UniqueEntity
This PR fixes an issue in the documentation where inline type annotations like | ``string`` | were not rendering correctly due to reStructuredText interpreting the | characters as substitution references. Changes: Replaced | ``string`` | with a more reliable format: boolean, string or array Ensures consistent rendering across Sphinx and other reST parsers This improves readability and avoids confusion when displaying valid type options in inline documentation.
1 parent 621b57b commit fc01784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/constraints/UniqueEntity.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ each with a single field.
277277
``ignoreNull``
278278
~~~~~~~~~~~~~~
279279

280-
**type**: ``boolean`` | ``string`` | ``array`` **default**: ``true``
280+
**type**: ``boolean``, ``string`` or ``array`` **default**: ``true``
281281

282282
If this option is set to ``true``, then the constraint will allow multiple
283283
entities to have a ``null`` value for a field without failing validation.

0 commit comments

Comments
 (0)