Ejemplo n.º 1
0
 class Schema:
     pk = StringField(pk=True, description="Identifier of the resource")
     value = IntegerField(min_val=0,
                          max_val=100,
                          description="Lecturer's performance identifier ")
     creation_time = DateTimeField(
         description="Time when the rating was added (for sorting purpose)")
Ejemplo n.º 2
0
 class Schema:
     name = StringField(pk=True, description="Name of the course. E.g. physics, maths.")
     duration = IntegerField(description="Length of the course in weeks")
Ejemplo n.º 3
0
 class Schema:
     grade = IntegerField(min_val=1, max_val=5)
Ejemplo n.º 4
0
 class Schema:
     pk = IntegerField(pk=True)
Ejemplo n.º 5
0
 class Schema:
     pk = IntegerField(pk=True)
     datetieme_field = DateTimeField(required=False)
Ejemplo n.º 6
0
 class Sample(Schema):
     one = IntegerField()
     two = StringField()
     three = DateTimeField()
     has_additional_fields = True
Ejemplo n.º 7
0
 class Sample(Schema):
     one = IntegerField()
     two = StringField()
     three = DateTimeField()
Ejemplo n.º 8
0
 class SchemaWithoutErrors(Schema):
     one = IntegerField()
     two = StringField()
Ejemplo n.º 9
0
        class WildCardSchema(Schema):
            has_additional_fields = True

            one = IntegerField()