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
There is also a shortcut: :ref:`schema.enum() <config-utils-schema-enum>`.
100
+
Learn more about supported data types: :ref:`config_utils_schema_data_types`.
101
+
- Composite data types: record, array, map.
102
+
Can be created using :ref:`schema.record() <config-utils-schema-record>`, :ref:`schema.array() <config-utils-schema-array>`, :ref:`schema.map() <config-utils-schema-map>`.
103
+
There is also a shortcut for arrays: :ref:`schema.set() <config-utils-schema-set>`.
101
104
102
-
Shortcuts:
103
-
104
-
- :ref:`schema.enum() <config-utils-schema-enum>`
105
-
- :ref:`schema.set() <config-utils-schema-set>`
106
105
107
106
.. _config_utils_schema_type_system_scalar:
108
107
@@ -135,7 +134,7 @@ See also: :ref:`config_utils_schema_data_types`.
135
134
Record
136
135
^^^^^^
137
136
138
-
Example config:
137
+
Example config 1 (no nested fields - only scalars inside the record):
Passed to ``scalar()``, see :ref:`config_utils_schema_type_system_scalar`.
221
+
221
222
Supported types:
222
223
223
224
- ``string`` -- ``string``
@@ -236,6 +237,19 @@ Supported types:
236
237
Annotations
237
238
***********
238
239
240
+
3 groups of annotations:
241
+
242
+
- Built-in annotations handled by the module (``validate``, ``allowed_values``, ``default``, ``apply_default_if``). Note that ``validate``, ``allowed_values`` used for validation only. ``default`` and ``apply_default_if`` can transform the configuration.
0 commit comments