Пример #1
0
 class Model(psm.SchemaModel):
     field = psm.FloatField(nullable=False)
Пример #2
0
 class Model(psm.SchemaModel):
     field = psm.FloatField(_max=10.12)
Пример #3
0
 class Model(psm.SchemaModel):
     field = psm.FloatField(_min=-1.34)
Пример #4
0
 class Model(psm.SchemaModel):
     field = psm.FloatField(forbidden=[1.1, 2.2, 3.3, 5.5])
Пример #5
0
 class Model(psm.SchemaModel):
     field = psm.FloatField(allowed=[1.1, 2.2, 3.3, 5.5])
Пример #6
0
 class Model(psm.SchemaModel):
     field = psm.FloatField(required=False)