Skip to content

Commit

Permalink
remove FlaskJSONEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
huberrob committed Jan 2, 2024
1 parent 2d1d550 commit 0c89cc6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fuji_server/encoder.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from connexion.apps.flask_app import FlaskJSONEncoder
# from connexion.apps.flask_app import FlaskJSONEncoder
from json import JSONEncoder

from fuji_server.models.base_model_ import Model


class JSONEncoder(FlaskJSONEncoder):
class JSONEncoder(JSONEncoder):
include_nulls = False

def default(self, o):
Expand All @@ -16,4 +17,4 @@ def default(self, o):
attr = o.attribute_map[attr]
dikt[attr] = value
return dikt
return FlaskJSONEncoder.default(self, o)
return JSONEncoder.default(self, o)

0 comments on commit 0c89cc6

Please sign in to comment.