Skip to content

Commit 5d209b7

Browse files
committed
snooty conflict
1 parent 80cbf93 commit 5d209b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/integrations/fastapi-integration.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ cannot assign it a value. To get around this, we name the field
165165
``id`` but give it an alias of ``_id``. You must also set
166166
``populate_by_name`` to ``True`` in the model's ``model_config``.
167167

168-
We set this ``id`` value automatically to ``None``, so that you don't need to
169-
specify it when creating a new student.
168+
We set this ``id`` value automatically to ``None``, so that can create a new
169+
student with out specifying it.
170170

171171
.. code-block:: python
172172

@@ -195,7 +195,7 @@ specify it when creating a new student.
195195
The ``UpdateStudentModel`` has two key differences from the ``StudentModel``:
196196

197197
- It does not have an ``id`` attribute as this cannot be modified.
198-
- All fields are optional, so you only need to supply the fields you want to update.
198+
- All fields are optional, so can supply only the fields you want to update.
199199

200200
Finally, ``StudentCollection`` is defined to encapsulate a list of ``StudentModel`` instances. In theory, the endpoint could return a top-level list of StudentModels, but there are some vulnerabilities associated with returning JSON responses with top-level lists.
201201

0 commit comments

Comments
 (0)