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.
135
135
The schema is a JSON object that contains key-value pairs
136
136
specifying the validation rules for your collection. At the top level,
137
137
this object must include a ``$jsonSchema`` object. The ``$jsonSchema``
138
- object includes the following fields:
138
+ object can include the following fields:
139
139
140
- - ``title``: Sets an optional description for the schema.
140
+ - ``title``: Sets an optional title for the schema.
141
141
- ``required``: Specifies a list of required fields for each document in your collection.
142
142
- ``properties``: Sets property requirements for individual fields.
143
143
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
145
145
</reference/operator/query/jsonSchema/#json-schema>` in the {+server-docs-name+}.
146
146
147
147
You can optionally pass the following parameters to ``jsonSchema()``:
148
148
149
149
- ``validationLevel``: Sets the level of validation enforcement.
150
- Accepted values are ``"strict"`` and ``"moderate"``.
150
+ Accepted values are ``"strict"`` (default) and ``"moderate"``.
151
151
- ``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
153
153
``"warn"``.
154
154
155
155
This example demonstrates how to pass a JSON schema to the
You can’t perform that action at this time.
0 commit comments