예제 #1
0
 class B(Document):
     a = StringField(format="something wrong")
예제 #2
0
 class C(Document):
     a = StringField(min_length='a')
예제 #3
0
 class D(Document):
     a = StringField(max_length='a')
예제 #4
0
 class A(Document):
     a = StringField(pattern=1)
예제 #5
0
 class A(Document):
     a = StringField(pattern=".", default="a", min_length=1, max_length=1)
예제 #6
0
 class A(Document):
     a = CompoundField(one_of=[StringField(), IntField()])
예제 #7
0
 class A(Document):
     a = StringField()
예제 #8
0
 class B(A):
     b = StringField()
예제 #9
0
 class B(Document):
     b = StringField()