Skip to content

Commit

Permalink
fixbag
Browse files Browse the repository at this point in the history
  • Loading branch information
hackoffme committed Oct 4, 2022
1 parent dc791af commit 0cb630d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ openapi3.egg-info/*
build/*
dist/*
.idea
env
3 changes: 3 additions & 0 deletions openapi3/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ def __init__(self, data, schema):
:param data: The data to create this Model with
:type data: dict
"""
if not data:
data={}

self._raw_data = data
self._schema = schema

Expand Down

0 comments on commit 0cb630d

Please sign in to comment.