Skip to content

Commit 12df5f1

Browse files
committed
feat: change Included type in TopLevel
1 parent 1cf79a9 commit 12df5f1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

jsonapi_pydantic/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from jsonapi_pydantic import constants, v1_0
22

3-
__version__ = "0.1.3"
3+
__version__ = "0.1.4"
44

55
__all__ = ["constants", "v1_0"]

jsonapi_pydantic/v1_0/toplevel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
JsonApi = Optional[JsonApiObject]
2323
Links = Optional[LinksObject]
24-
Included = Union[None, conlist(Resource, min_items=1, unique_items=True)]
24+
Included = Optional[conlist(Resource, min_items=0, unique_items=True)]
2525

2626

2727
class TopLevel(BaseModel):

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "jsonapi-pydantic"
3-
version = "0.1.3"
3+
version = "0.1.4"
44
description = "JSON:API implementation with pydantic."
55

66
authors = ["impocode <[email protected]>"]

0 commit comments

Comments
 (0)