Skip to content

Commit

Permalink
build: v0.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
danangjoyoo committed Dec 10, 2022
1 parent 31cd32c commit 99aa778
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions flask_toolkits/responses.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import datetime
import enum
import json
from pydantic import BaseModel
Expand Down Expand Up @@ -36,6 +37,10 @@ def default(self, o: Any) -> Any:
return o.dict()
if enum.Enum.__subclasscheck__(o.__class__):
return o.value
if datetime.datetime.__subclasscheck__(o.__class__):
return o.isoformat()
if datetime.date.__subclasscheck__(o.__class__):
return o.isoformat()
finally:
try:
oo = super().default(o)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()

VERSION = "0.7.5"
VERSION = "0.7.6"
DESCRIPTION = "Flask toolkits to boost your development and simplify flask, its featured with AutoSwagger"

# Setting up
Expand Down

0 comments on commit 99aa778

Please sign in to comment.