Skip to content

Commit 0761e11

Browse files
p7novlenkis
andauthored
Apply suggestions from code review
Co-authored-by: Elena Shebunyaeva <[email protected]>
1 parent bee7bf5 commit 0761e11

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

doc/platform/app/app_roles.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This example shows how to enable and configure the ``greeter`` role, which is im
4545
The role configuration provided in ``roles_cfg`` can be accessed when :ref:`validating <roles_create_custom_role_validate>` and :ref:`applying <roles_create_custom_role_apply>` this configuration.
4646

4747
Tarantool includes the :ref:`experimental.config.utils.schema <config_utils_schema_module>`
48-
built-in module that provides an for managing user-defined configurations
48+
built-in module that provides tools for managing user-defined configurations
4949
of applications (``app.cfg``) and roles (``roles_cfg``). The examples below show its
5050
basic usage.
5151

doc/reference/reference_lua/config/utils_schema.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Getting started with config.utils.schema
2424
----------------------------------------
2525

2626
As an example, consider an :ref:`application role <configuration_application_roles>`
27-
that has a single configuration option - an HTTP endpoint address.
27+
that has a single configuration option -- an HTTP endpoint address.
2828

2929
.. literalinclude:: /code_snippets/snippets/config/instances.enabled/config_schema_nodes_scalar/config.yaml
3030
:language: yaml
@@ -285,7 +285,7 @@ any number of options with arbitrary names and boolean values.
285285
Annotations
286286
***********
287287

288-
Node *annotations* are named attributes that define the its various aspects. For example,
288+
Node *annotations* are named attributes that define its various aspects. For example,
289289
scalar nodes have a required annotation ``type`` that defines the node value type.
290290
Other annotations can, for example, set a node's default value and a validation function,
291291
or store arbitrary user-provided data.
@@ -301,7 +301,7 @@ Annotations are passed in a table to the node creation function:
301301
Node annotations fall into three groups:
302302

303303
- *Built-in annotations* are handled by the module. These are: ``type``, ``validate``, ``allowed_values``, ``default`` and ``apply_default_if``.
304-
Note that ``validate``, ``allowed_values`` are used for validation only. ``default`` and ``apply_default_if`` can transform the configuration.
304+
Note that ``validate`` and ``allowed_values`` are used for validation only. ``default`` and ``apply_default_if`` can transform the configuration.
305305
- *User-defined annotations* add named node attributes that can be used in the
306306
application or role code.
307307
- *Computed annotations* allow access to annotations of other nodes throughout
@@ -319,7 +319,7 @@ built-in annotations:
319319
The type must be explicitly specified for scalar nodes, except for those created with ``schema.enum()``.
320320
For composite nodes and scalar enums, the corresponding constructors ``schema.record()``, ``schema.map()``, ``schema.array()``,
321321
``schema.set()``, and ``schema.enum()`` set the type automatically.
322-
- :ref:`allowed_values <config-schema_node_annotation-allowed_values>` -- (optional) a list of possible node values .
322+
- :ref:`allowed_values <config-schema_node_annotation-allowed_values>` -- (optional) a list of possible node values.
323323
- :ref:`validate <config-schema_node_annotation-validate>` -- (optional) a validation function for the provided node value.
324324
- :ref:`default <config-schema_node_annotation-default>` -- (optional) a value to use if the option is not specified in the configuration.
325325
- :ref:`apply_default_if <config-schema_node_annotation-apply_default_if>` -- (optional) a function that defines when to apply the default value.
@@ -839,7 +839,7 @@ Functions
839839

840840
- ``type``: ``array``
841841
- ``items``: a table describing an array item as a schema node
842-
- ``validate``: an auto-generated validation function that check
842+
- ``validate``: an auto-generated validation function that checks
843843
that the values don't repeat
844844
- annotations, if provided
845845

@@ -1190,7 +1190,7 @@ parsed by the modules as :ref:`built-in annotations <config_utils_schema_built_i
11901190

11911191
**Example:**
11921192

1193-
A function that checks that a string a valid IP address:
1193+
A function that checks that a string is a valid IP address:
11941194

11951195
.. literalinclude:: /code_snippets/snippets/config/instances.enabled/config_schema_annotations/http_api.lua
11961196
:language: lua

0 commit comments

Comments
 (0)