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
Built-in annotations are interpreted by the module itself. There are the following
315
315
built-in annotations:
316
316
317
-
- :ref:`type <config-schema_node_object-type>` -- the node value type. Mandatory for scalar nodes, except for those created with ``schema.enum()``.
318
-
- :ref:`allowed_values <config-schema_node_object-allowed_values>` -- a list of possible node values.
319
-
- :ref:`validate <config-schema_node_object-validate>` -- a validation function for the provided node value.
320
-
- :ref:`default <config-schema_node_object-default>` -- a value to use if the option is not specified in the configuration.
321
-
- :ref:`apply_default_if <config-schema_node_object-apply_default_if>` -- a function that defines when to apply the default value.
317
+
- :ref:`type <config-schema_node_annotation-type>` -- the node value type. Mandatory for scalar nodes, except for those created with ``schema.enum()``.
318
+
- :ref:`allowed_values <config-schema_node_annotation-allowed_values>` -- a list of possible node values.
319
+
- :ref:`validate <config-schema_node_annotation-validate>` -- a validation function for the provided node value.
320
+
- :ref:`default <config-schema_node_annotation-default>` -- a value to use if the option is not specified in the configuration.
321
+
- :ref:`apply_default_if <config-schema_node_annotation-apply_default_if>` -- a function that defines when to apply the default value.
322
322
323
323
Consider the following role configuration:
324
324
@@ -468,7 +468,7 @@ Transforming configuration
468
468
469
469
The module provides methods that transform configuration data based on the schema,
470
470
for example, :ref:`apply_default() <config-schema_object-apply_default>`,
0 commit comments