Skip to content

Commit

Permalink
Update schemameta
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotgao2 committed Mar 28, 2017
1 parent 562438d commit 2465257
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xdata/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def __new__(mcs, name, bases, attrs):
for k, v in attrs.items():
if isinstance(v, DataType):
checkers[k] = v
v.name = k

for k in checkers:
attrs.pop(k)
Expand All @@ -31,7 +32,7 @@ def __init__(self, data):
def validate(self):

for k, v in self.checkers.items():
self.checkers[k].name = k

if k in self.data:
self.checkers[k].value = self.data[k]

Expand Down

0 comments on commit 2465257

Please sign in to comment.