Exemplo n.º 1
0
class CarParkSerializer(PbNestedSerializer):
    available = jsonschema.IntField()
    occupied = jsonschema.IntField()
    available_PRM = jsonschema.IntField()
    occupied_PRM = jsonschema.IntField()
    total_places = jsonschema.IntField()
Exemplo n.º 2
0
 class Custom(serpy.Serializer):
     bob = jsonschema.IntField()
Exemplo n.º 3
0
class StandsSerializer(PbNestedSerializer):
    available_places = jsonschema.IntField()
    available_bikes = jsonschema.IntField()
    total_stands = jsonschema.IntField()