File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -135,21 +135,21 @@ define a JSON schema.
135135The schema is a JSON object that contains key-value pairs
136136specifying the validation rules for your collection. At the top level,
137137this object must include a ``$jsonSchema`` object. The ``$jsonSchema``
138- object includes the following fields:
138+ object can include the following fields:
139139
140- - ``title``: Sets an optional description for the schema.
140+ - ``title``: Sets an optional title for the schema.
141141- ``required``: Specifies a list of required fields for each document in your collection.
142142- ``properties``: Sets property requirements for individual fields.
143143
144- For a full list of JSON schema object fields, see :manual:`JSON Schema
144+ To view a full list of JSON schema object fields, see :manual:`JSON Schema
145145</reference/operator/query/jsonSchema/#json-schema>` in the {+server-docs-name+}.
146146
147147You can optionally pass the following parameters to ``jsonSchema()``:
148148
149149- ``validationLevel``: Sets the level of validation enforcement.
150- Accepted values are ``"strict"`` and ``"moderate"``.
150+ Accepted values are ``"strict"`` (default) and ``"moderate"``.
151151- ``validationAction``: Specifies the action to take when invalid
152- operations are attempted. Accepted values are ``"error"`` and
152+ operations are attempted. Accepted values are ``"error"`` (default) and
153153 ``"warn"``.
154154
155155This example demonstrates how to pass a JSON schema to the
You can’t perform that action at this time.
0 commit comments