class ToDoNote(typesystem.Object): properties = { 'id': typesystem.integer(minimum=0), 'text': typesystem.string(max_length=100), 'complete': typesystem.boolean(), 'percent_complete': typesystem.number(), 'category': Category }
class Kitten(typesystem.Object): properties = { 'name': KittenName, 'color': KittenColor, 'cuteness': typesystem.number(minimum=0.0, maximum=10.0, multiple_of=0.1) }
class Payment(typesystem.Object): properties = { # 'user_id': User, 'amount': typesystem.number(maximum=1000000, description='Payment Amount.'), # 'length': typesystem.string(max_length=100), # time 'method': Method, # 'data': typesystem.string(max_length=100), 'status': Status, # 'date': Quality # time }
class Location(typesystem.Object): properties = { 'latitude': typesystem.number(minimum=-90.0, maximum=90.0), 'longitude': typesystem.number(minimum=-180.0, maximum=180.0) }