Skip to content
Snippets Groups Projects
Commit eb2acc4e authored by Ladislav Lhotka's avatar Ladislav Lhotka
Browse files

Update docs.

parent fefdb215
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,17 @@ all :class:`~.schema.TerminalNode` instances.
>>> string_t.default
'xxy'
.. attribute:: name
Name of the type if it is derived, otherwise ``None``.
.. doctest::
>>> string_t.name
'my-string'
>>> boolean_t.name is None
True
.. rubric:: Public Methods
.. method:: from_raw(raw: RawScalar) -> ScalarValue
......
......@@ -8,6 +8,9 @@ Enumeration Classes
.. autoclass:: ContentType
:members:
.. autoclass:: ValidationScope
:members:
.. autoclass:: DefaultDeny
:members:
......
......@@ -27,7 +27,7 @@ class ContentType(Enum):
nonconfig = 2
"""Data that does not represent configuration."""
all = 3
"""All of the above."""
"""All data."""
class ValidationScope(Enum):
"""Enumeration of validation scopes."""
......@@ -37,7 +37,7 @@ class ValidationScope(Enum):
"""Validation of semantics ("must" constraints, uniqueness, cardinality,
referential integrity."""
all = 3
"""All of the above."""
"""Both syntax and semantics."""
class DefaultDeny(Enum):
"""Enumeration of NACM default deny values."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment