Skip to content

Commit

Permalink
feat: change Included type in TopLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
impocode committed Oct 16, 2022
1 parent 1cf79a9 commit 12df5f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jsonapi_pydantic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from jsonapi_pydantic import constants, v1_0

__version__ = "0.1.3"
__version__ = "0.1.4"

__all__ = ["constants", "v1_0"]
2 changes: 1 addition & 1 deletion jsonapi_pydantic/v1_0/toplevel.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

JsonApi = Optional[JsonApiObject]
Links = Optional[LinksObject]
Included = Union[None, conlist(Resource, min_items=1, unique_items=True)]
Included = Optional[conlist(Resource, min_items=0, unique_items=True)]


class TopLevel(BaseModel):
Expand Down
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 = "jsonapi-pydantic"
version = "0.1.3"
version = "0.1.4"
description = "JSON:API implementation with pydantic."

authors = ["impocode <[email protected]>"]
Expand Down

0 comments on commit 12df5f1

Please sign in to comment.