示例#1
0
 class Model(psm.SchemaModel):
     bag = psm.ListField([psm.IntegerField(), psm.BoolField()])
示例#2
0
 class SubModel(psm.SchemaModel):
     data = psm.ListField([psm.BoolField()])
示例#3
0
 class Model(psm.SchemaModel):
     field = psm.BoolField(nullable=True)
示例#4
0
 class Model(psm.SchemaModel):
     field = psm.ListField([
         psm.BoolField(),
         psm.StringField(),
         psm.IntegerField(nullable=True)
     ])
示例#5
0
 class Model(psm.SchemaModel):
     field = psm.ListField([psm.BoolField()], required=True)
示例#6
0
 class Model(psm.SchemaModel):
     field = psm.BoolField(required=False)