Skip to content

Commit 84e8c85

Browse files
committed
wip
1 parent ea1d3a6 commit 84e8c85

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/eloquent-models/schema-builder.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,21 +135,21 @@ define a JSON schema.
135135
The schema is a JSON object that contains key-value pairs
136136
specifying the validation rules for your collection. At the top level,
137137
this 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

147147
You 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

155155
This example demonstrates how to pass a JSON schema to the

0 commit comments

Comments
 (0)