Skip to content

Commit

Permalink
chore(docs): fix typo in pydantic section
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Feb 7, 2022
1 parent ab7d6da commit 46f80d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/fundamentals/fastapi-support/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,11 @@ The same idea applies to DocumentArray as well. Say after [`.match()`](../docume

```python
from typing import List, Optional
from pydantic import BaseModel

class IdAndMatch(BaseModel):
id: str
matches: Optional[List['IdMatch']]
matches: Optional[List['IdAndMatch']]
```

Bind it to `response_model`:
Expand Down

0 comments on commit 46f80d6

Please sign in to comment.