Example #1
0
        class MyModel(schemas.StringModel):

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

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

        name = schemas.StringType()