Skip to content
Permalink
Browse files

[#16] schematics BaseModel의 validate_additional에 abc.abstractmethod 데…

…코레이팅
  • Loading branch information...
JoMingyu committed Mar 11, 2019
1 parent 0819f25 commit 48581b66dfea549117138b274f627d64a1f453c8
Showing with 3 additions and 1 deletion.
  1. +3 −1 app/decorators/validation.py
@@ -1,3 +1,4 @@
from abc import abstractmethod
from enum import Enum
from functools import wraps
from typing import Type
@@ -14,8 +15,9 @@ class PayloadLocation(Enum):


class BaseModel(Model):
@abstractmethod
def validate_additional(self):
raise NotImplementedError # For abstract method
pass


def validate_with_schematics(validation_target: PayloadLocation, model: Type[BaseModel]):

0 comments on commit 48581b6

Please sign in to comment.
You can’t perform that action at this time.