Skip to content

Commit

Permalink
fix: compatibility with pydantic master branch (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Jun 2, 2022
1 parent a3e9f33 commit 43fcc36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "xpresso"
version = "0.41.0"
version = "0.41.1"
description = "A developer centric, performant Python web framework"
authors = ["Adrian Garcia Badaracco <adrian@adriangb.com>"]
readme = "README.md"
Expand Down
3 changes: 3 additions & 0 deletions xpresso/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class ResponseSpec(BaseModel):
content: Optional[Mapping[str, Union[ResponseModel, type]]] = None
headers: Optional[Mapping[str, Union[ResponseHeader, str]]] = None

class Config:
arbitrary_types_allowed = True


class FileResponseSpec(ResponseSpec):
content: Optional[Mapping[str, Union[ResponseModel, type]]] = {
Expand Down

0 comments on commit 43fcc36

Please sign in to comment.