예제 #1
0
        class MyModel(schemas.StringModel):

            import_format = r"(?P<left>.*)==(?P<right>\d*)"
            export_format = "{left}=={right}"

            left = schemas.StringType()
            right = schemas.IntType()
예제 #2
0
 class SchemaExample(schemas.Model):
     arg1 = schemas.StringType(required=True)
     arg2 = schemas.ListType(schemas.IntType)
예제 #3
0
    class ModelExample(schemas.ResultSet):

        name = schemas.StringType()