You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can view any changes to the docs locally by running:
192
192
@@ -238,11 +238,11 @@ git remote -v
238
238
239
239
## Making a Pull Request
240
240
241
-
After pushing your code to origin it is now on GitHub but not yet part of the meilisearch-python-async project. When you’re ready to ask for a code review, file a pull request. Before you do, once again make sure that you have followed all the guidelines outlined in this document regarding code style, tests, and documentation.
241
+
After pushing your code to origin it is now on GitHub but not yet part of the meilisearch-python-sdk project. When you’re ready to ask for a code review, file a pull request. Before you do, once again make sure that you have followed all the guidelines outlined in this document regarding code style, tests, and documentation.
242
242
243
243
### Make the pull request
244
244
245
-
If everything looks good, you are ready to make a pull request. This is how you let the maintainers of the meilisearch-python-async project know you have code ready to be reviewed. To submit the pull request:
245
+
If everything looks good, you are ready to make a pull request. This is how you let the maintainers of the meilisearch-python-sdk project know you have code ready to be reviewed. To submit the pull request:
246
246
247
247
1. Navigate to your repository on GitHub
248
248
2. Click on the Pull Request button for your feature branch
Copy file name to clipboardExpand all lines: docs/pydantic.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,15 @@ either work with the data in the dictionary that is returned, or because you wil
11
11
you can generate your own Pydantic models.
12
12
13
13
As an example, if you want to get a movie from the
14
-
[small movies example](https://github.com/sanders41/meilisearch-python-async/blob/main/datasets/small_movies.json)
14
+
[small movies example](https://github.com/sanders41/meilisearch-python-sdk/blob/main/datasets/small_movies.json)
15
15
you could put the results into an object with the following:
16
16
17
17
```py
18
18
from datetime import datetime
19
19
from typing import Optional
20
20
21
21
from camel_converter.pydantic_base import CamelBase
22
-
frommeilisearch_python_asyncimport Client
22
+
frommeilisearch_python_sdkimport Client
23
23
24
24
25
25
# Inheriting from CamelBase will allow your class to automatically convert
@@ -53,7 +53,7 @@ Movie(
53
53
)
54
54
```
55
55
56
-
By inheriting from CamelBase, or any of the other [provided models](https://github.com/sanders41/meilisearch-python-async/tree/main/meilisearch_python_async/models)
56
+
By inheriting from CamelBase, or any of the other [provided models](https://github.com/sanders41/meilisearch-python-sdk/tree/main/meilisearch_python_sdk/models)
57
57
you will be inheriting Pydantic models and therefore have access to the funcitonality Pydantic provides
58
58
such as [validators](https://pydantic-docs.helpmanual.io/usage/validators/) and [Fields](https://pydantic-docs.helpmanual.io/usage/model_config/#alias-precedence).
59
59
Pydantic will also automatically deserialized the data into the correct data type based on the type
0 commit comments